[Webkit-unassigned] [Bug 48684] New: Should make use of purge priorities for different resource types

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 29 14:55:40 PDT 2010


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

           Summary: Should make use of purge priorities for different
                    resource types
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: psolanki at apple.com


PurgeableBuffer has support for purge priorities. We use this priority to set the volatile group when we call vm_purgable_control for the memory. Currently, all memory is marked as PurgeMiddle which get passed to the kernel as VM_VOLATILE_GROUP_4. Since some resource types (e.g. javascript) are more important than others, we should change this behavior to have different priority levels, e.g.

Default CachedResource priority - PurgeMiddle (which is the same as PurgeDefault)
CachedImage - PurgeFirst
CachedCSSStyleSheet - PurgeLast
CachedScript - PurgeLast

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