[webkit-changes] [WebKit/WebKit] ae91c4: Trigger GC when crossing warning threshold on iOS
bnham
noreply at github.com
Thu May 9 10:05:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ae91c42fd27e0a7f0b05af5edf0245b5b36805d7
https://github.com/WebKit/WebKit/commit/ae91c42fd27e0a7f0b05af5edf0245b5b36805d7
Author: Ben Nham <nham at apple.com>
Date: 2024-05-09 (Thu, 09 May 2024)
Changed paths:
M Source/WebCore/page/MemoryRelease.cpp
Log Message:
-----------
Trigger GC when crossing warning threshold on iOS
https://bugs.webkit.org/show_bug.cgi?id=273830
rdar://127677553
Reviewed by Geoffrey Garen.
On iOS where we have fairly strict memory limits, sometimes the mutator can get far ahead of the
GC. We might wait until a PROC_LIMIT_CRITICAL event fires before a full GC occurs, at which point
the process is already eligible to be killed by the OS.
To try and reduce the number of foreground OOMs, let's also trigger a full GC if it hasn't occurred
recently when a PROC_LIMIT_WARNING event fires (which is 80% of the critical threshold).
* Source/WebCore/page/MemoryRelease.cpp:
(WebCore::releaseMemory):
Canonical link: https://commits.webkit.org/278567@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list