[Webkit-unassigned] [Bug 111094] [Qt]clearMemoryCaches of QWebSettings should call GC to release references of CachedResource

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 5 09:27:16 PST 2013


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





--- Comment #16 from Arunprasad <ararunprasad at gmail.com>  2013-03-05 09:29:40 PST ---
(In reply to comment #12)
> (In reply to comment #3)
> > (From update of attachment 190772 [details] [details])
> > View in context: https://bugs.webkit.org/attachment.cgi?id=190772&action=review
> > 
> > It sounds to me that this is a reasonable thing to do. Allan, what do you think?
> > 
> Yeah, looks good. I would use gcController().discardAllCompiledCode(). It is more powerfull if you reaally want to free all cached code (also frees cached JIT code blocks).

Is it really needed? Because Script is also a part of CacheResource right? Compiled code will be equivalent to DecodedData?

    if (!WebCore::memoryCache()->disabled()) {
        WebCore::memoryCache()->setDisabled(true);
        WebCore::memoryCache()->setDisabled(false);
    }

I guess. Above should purge the compiled code as well.

Sorry in case I'm wrong :)


Anyhow I will add all those things from MemoryPressureHandlerMac.mm

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