[Webkit-unassigned] [Bug 189460] svg/text/text-text-05-t.svg leaks a document
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jan 10 20:59:28 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=189460
--- Comment #6 from Joseph Pecoraro <joepeck at webkit.org> ---
It is interesting to note that `WebCore::FontCache::purgeInactiveFontData` purges differently in a memory warning versus WKBundleReleaseMemory based on being under real memory pressure or not:
const unsigned cMaxInactiveFontData = 225;
const unsigned cMaxUnderMemoryPressureInactiveFontData = 50;
...
void FontCache::purgeInactiveFontDataIfNeeded()
{
bool underMemoryPressure = MemoryPressureHandler::singleton().isUnderMemoryPressure();
unsigned inactiveFontDataLimit = underMemoryPressure ? cMaxUnderMemoryPressureInactiveFontData : cMaxInactiveFontData;
...
}
So a MemoryWarning (which will simulate isUnderMemoryPressure) will potentially reduce the cache to 50 but a simple WKBundleReleaseMemory would aim for 225. I'll see if I force WKBundleReleaseMemory to set "isUnderMemoryPressure" if that helps.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190111/44397b32/attachment.html>
More information about the webkit-unassigned
mailing list