[Webkit-unassigned] [Bug 63918] [JSC] WebKit allocates gigabytes of memory when doing repeated string concatenation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 5 14:18:53 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=63918





--- Comment #2 from Gavin Barraclough <barraclough at apple.com>  2011-07-05 14:18:52 PST ---
(In reply to comment #1)
> I debugged this a little, and I observed the JSC GC is allocating JSStrings with two fibers during string concatenation. These JSC heap objects are small, so JSC GC is not triggered.

There is a mechanism that is meant to help deal with this, that looks a little broken.  One of the JSString constructors is calling reportExtraMemoryCost - this should probably be called on all UStrings & StringImpls being passed through the JSString constructors.  (That said, Geoff has been doing a lot of work in the heap lately, might be worth verifying this mechanism is still live & hooked up on the other side).

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



More information about the webkit-unassigned mailing list