Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Enforce foreground WebContent memory limit on macOS
https://bugs.webkit.org/show_bug.cgi?id=240397 Reviewed by Chris Dumez. We removed the foreground memory limit for WebContent on macOS in r272046. But based on some bug reports that we've seen, it seems like we need to restore some limit to prevent bad user outcomes when a misbehaving process has runaway memory usage. This patch adds a foreground memory limit of 8GB or 16GB depending on RAM size. This matches the limits set by other browsers for their content process. * wtf/MemoryPressureHandler.cpp: (WTF::thresholdForMemoryKillOfActiveProcess): (WTF::MemoryPressureHandler::thresholdForMemoryKill): Canonical link: https://commits.webkit.org/250548@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
25 additions
and 1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters