[Webkit-unassigned] [Bug 65445] New: JSC does a GC even when the heap still has free pages

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 31 21:34:07 PDT 2011


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

           Summary: JSC does a GC even when the heap still has free pages
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: fpizlo at apple.com


The JSC GC has an elastic notion of free memory, where free blocks left over from a previous garbage collection are steadily returned to the OS provided that the application does not experience a subsequent heap usage spike that would need those blocks again.  But the GC does not leverage this as well as it could.  It separately maintains a watermark limit for invoking collection. This limit is independent of the number of free pages.  Thus, if an application experiences a memory usage peak where the heap is grown, and then memory usage dips resulting in a lower watermark, then the heap will be in the following awkward state: the free block pool will still have blocks available for immediate use in allocations, but the collector will insist on running anyway.

Ideally, the elasticity of the free block pool should be coupled to the GC's decision function for when to invoke collection, so that we don't do full collections when there is still free memory available.

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