[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 08:20:43 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=111094
--- Comment #14 from Arunprasad <ararunprasad at gmail.com> 2013-03-05 08:23:07 PST ---
(In reply to comment #13)
> (In reply to comment #12)
> > (In reply to comment #3)
> > > (From update of attachment 190772 [details] [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 really want to free all cached code (also frees cached JIT code blocks).
>
> Actually I would suggest we took a look at and cleaned the same caches as MemoryPressureMac::releaseMemory() does. I am surprised we use such an agressive call to FontCache for instance.
I just go through the MemoryPressureHandler::releaseMemory @ MemoryPressureHandlerMac.mm. Looks nice and does more than expected :)
Can we introduce one more static member function QWebSettings::releaseMemory(bool critical)? Which does exactly like mac counterpart.?
(or) Just add it inside QWebSettings::clearMemoryCache()?
--
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