[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:10:41 PST 2013


--- Comment #15 from Allan Sandfeld Jensen <allan.jensen at digia.com>  2013-03-05 09:13:05 PST ---
(In reply to comment #14)
> 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()?

I would just add the other caches inside clearMemoryCache(), it is already documented as clearing as much cache as possible.

If anything we need a less aggressive method for manual garbage collection. Similar to how you can call collectGarbage() on QScriptEngine or QJSEngine, but that is beyond this bug.

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