Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 9a0fae3d36044d670d532ca9ccc4bf43d2fbadf7
https://github.com/WebKit/WebKit/commit/9a0fae3d36044d670d532ca9ccc4bf43d2fbadf7
Author: Vitor Roriz <[email protected]>
Date: 2026-03-12 (Thu, 12 Mar 2026)
Changed paths:
M Source/WebCore/page/MemoryRelease.cpp
M Source/WebCore/platform/graphics/FontCache.cpp
M Source/WebCore/platform/graphics/FontCache.h
M Source/WebCore/platform/graphics/FontCascadeCache.cpp
M Source/WebCore/platform/graphics/FontCascadeCache.h
Log Message:
-----------
Clear ShapedTextCache on critical memory pressure
https://bugs.webkit.org/show_bug.cgi?id=309644
rdar://172247772
Reviewed by Matt Woodrow.
Clear the ShapedTextCache only under critical memory pressure,
not noncritical. Shaped text entries are expensive to rebuild
(full text shaping), so clearing them too eagerly regresses
benchmarks like MotionMark Sheets. The GlyphGeometryCache
continues to be cleared on noncritical pressure as before.
* Source/WebCore/page/MemoryRelease.cpp:
(WebCore::releaseCriticalMemory):
* Source/WebCore/platform/graphics/FontCache.cpp:
(WebCore::FontCache::releaseCriticalMemoryInAllFontCaches):
* Source/WebCore/platform/graphics/FontCache.h:
* Source/WebCore/platform/graphics/FontCascadeCache.cpp:
(WebCore::FontCascadeCache::clearShapedTextCaches):
* Source/WebCore/platform/graphics/FontCascadeCache.h:
Canonical link: https://commits.webkit.org/309169@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications