Title: [184041] trunk/Source/WebCore
- Revision
- 184041
- Author
- [email protected]
- Date
- 2015-05-09 10:37:16 -0700 (Sat, 09 May 2015)
Log Message
Invalidate the FontCache on WebProcess suspension / critical memory pressure
https://bugs.webkit.org/show_bug.cgi?id=144821
Reviewed by Antti Koivisto.
Invalidate the FontCache on WebProcess suspension / critical memory
pressure to free a bit more memory (an extra 4-16Kb per WebProcess on
the pages I tested). We already purge inactive font data on
non-critical memory warning but invalidating the whole FontCache takes
care of clearing the FontCascade cache and the fontPlatformData cache
as well.
* platform/MemoryPressureHandler.cpp:
(WebCore::MemoryPressureHandler::releaseCriticalMemory):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (184040 => 184041)
--- trunk/Source/WebCore/ChangeLog 2015-05-09 08:39:23 UTC (rev 184040)
+++ trunk/Source/WebCore/ChangeLog 2015-05-09 17:37:16 UTC (rev 184041)
@@ -1,3 +1,20 @@
+2015-05-09 Chris Dumez <[email protected]>
+
+ Invalidate the FontCache on WebProcess suspension / critical memory pressure
+ https://bugs.webkit.org/show_bug.cgi?id=144821
+
+ Reviewed by Antti Koivisto.
+
+ Invalidate the FontCache on WebProcess suspension / critical memory
+ pressure to free a bit more memory (an extra 4-16Kb per WebProcess on
+ the pages I tested). We already purge inactive font data on
+ non-critical memory warning but invalidating the whole FontCache takes
+ care of clearing the FontCascade cache and the fontPlatformData cache
+ as well.
+
+ * platform/MemoryPressureHandler.cpp:
+ (WebCore::MemoryPressureHandler::releaseCriticalMemory):
+
2015-05-09 Yoav Weiss <[email protected]>
Remove the PICTURE_SIZES build flag
Modified: trunk/Source/WebCore/platform/MemoryPressureHandler.cpp (184040 => 184041)
--- trunk/Source/WebCore/platform/MemoryPressureHandler.cpp 2015-05-09 08:39:23 UTC (rev 184040)
+++ trunk/Source/WebCore/platform/MemoryPressureHandler.cpp 2015-05-09 17:37:16 UTC (rev 184041)
@@ -129,6 +129,11 @@
ReliefLogger log("Discard all JIT-compiled code");
gcController().discardAllCompiledCode();
}
+
+ {
+ ReliefLogger log("Invalidate font cache");
+ FontCache::singleton().invalidate();
+ }
}
void MemoryPressureHandler::releaseMemory(bool critical)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes