[webkit-changes] [WebKit/WebKit] 69098e: Make memory pressure handler call deleteAllCode wi...
Cameron McCormack
noreply at github.com
Thu Mar 2 03:48:49 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 69098ebe6b1ecd3ba973413d35f6c7290715ebae
https://github.com/WebKit/WebKit/commit/69098ebe6b1ecd3ba973413d35f6c7290715ebae
Author: Cameron McCormack <heycam at apple.com>
Date: 2023-03-02 (Thu, 02 Mar 2023)
Changed paths:
M Source/WebCore/page/MemoryRelease.cpp
Log Message:
-----------
Make memory pressure handler call deleteAllCode with PreventCollectionAndDeleteAllCode
https://bugs.webkit.org/show_bug.cgi?id=253133
<rdar://problem/106065668>
Reviewed by Mark Lam and Yusuke Suzuki.
The memory pressure handler currently calls
GCController::deleteAllCode(DeleteAllCodeIfNotCollecting), but it turns out we
hit the case of a collection being in progress moderately often. We already
do a bunch of blocky work here to get memory usage down, so let's change this
to PreventCollectionAndDeleteAllCode to guarantee we can drop all JIT code.
* Source/WebCore/page/MemoryRelease.cpp:
(WebCore::releaseCriticalMemory):
Canonical link: https://commits.webkit.org/261061@main
More information about the webkit-changes
mailing list