[Webkit-unassigned] [Bug 15046] fast/js/string-concatenate-outofmemory.html pwns OS X, times out on Windows

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 22 09:35:22 PDT 2007


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





------- Comment #2 from mrowe at apple.com  2007-08-22 09:35 PDT -------
The test was also changed to repeat the repeated concatentation several times. 
This was done on the assumption that the large strings would be garbage
collected by the time the next large string was allocated.  This appears to not
be the case.   This can lead the memory occupied by the strings to climb to
over 2GB in size.

I'm not sure what the best solution to this is.  It seems insane to allow
JavaScript to allocate a single string of 1GB in size.  It also seems bad that
it takes so long for such a large chunk of memory to be garbage collected. 
Perhaps a hard-coded maximum string size, although dirty, would be in order? 
It would also solve the issue that this test will completely *kill* any 64-bit
machine on which it runs, as the memory allocations would not fail until either
swap space or address space is exhausted.


-- 
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