[Webkit-unassigned] [Bug 18670] fastMalloc should crash on failed allocs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 23 19:17:22 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18670





------- Comment #6 from mrowe at apple.com  2008-04-23 19:17 PDT -------
(In reply to comment #5)
> (In reply to comment #4)
> > How can it be replaced by a check against a fixed size?  Allocating a very
> > large number of a smaller strings can trigger a situation that will lead to
> > fastMalloc failing just as easily as allocating a small number of very large
> > strings.
> 
> Sure, and that fastMalloc should fail (like it would today), and CRASH right
> then and there (like it should, but doesn't today). 

JavaScriptCore detects this case and propagates it to the calling script as an
"Out of memory" exception.  How is crashing an improvement?


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list