[Webkit-unassigned] [Bug 126610] Memory leak from windowScriptObjectAvailable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jan 14 13:34:04 PST 2014


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





--- Comment #9 from Alex Christensen <alex.christensen at flexsim.com>  2014-01-14 13:31:42 PST ---
(In reply to comment #7)
> I call JSReportExtraMemoryCost(ctx,1000000000); then JSGarbageCollect(ctx);
For the record, this is a terrible solution, and the garbage collector keeps the memory usage to a few megabytes when JSReportExtraMemoryCost is used correctly, which is reasonable.

(In reply to comment #8)
> Where is the extra reference to the JSContextRef coming from? Maybe the ref count is zero, but you're not sweeping anything so finalization never happens? Does the IncrementalSweeper work on Windows?
I'm not sure, but the ref count of the JSContextRef is always between 2 and 4.  Doing extra releases causes crashes, so there's probably something global that I wasn't expecting to be global.  
> 
> collectAllGarbage also forces eager sweeping, which is why it would cause finalization to happen.

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