Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 69098ebe6b1ecd3ba973413d35f6c7290715ebae
https://github.com/WebKit/WebKit/commit/69098ebe6b1ecd3ba973413d35f6c7290715ebae
Author: Cameron McCormack <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes