[webkit-changes] [WebKit/WebKit] d3ee4b: Merge 254533 at main - REGRESSION(250548 at main): Early...
Olivier Blin
noreply at github.com
Thu Sep 15 23:03:39 PDT 2022
Branch: refs/heads/webkitglib/2.38
Home: https://github.com/WebKit/WebKit
Commit: d3ee4bb1f79c59eada3c6f5e884c6ce37a233286
https://github.com/WebKit/WebKit/commit/d3ee4bb1f79c59eada3c6f5e884c6ce37a233286
Author: Olivier Blin <olivier.blin at softathome.com>
Date: 2022-09-16 (Fri, 16 Sep 2022)
Changed paths:
M Source/WTF/wtf/MemoryPressureHandler.cpp
Log Message:
-----------
Merge 254533 at main - REGRESSION(250548 at main): Early WebProcess exit on 32-bit platforms since memory limit is zero
https://bugs.webkit.org/show_bug.cgi?id=245222
Reviewed by Ben Nham and Chris Dumez.
In 250548 at main, the memory limit in MemoryPressureHandler is set to a
least 7 GB for active process.
This value is stored in a size_t variable, but this is limited to 4 GB
on 32-bit platforms.
The memory limit is truncated down to 0, which triggers a WebProcess
exit after the first MemoryPressure check.
* Source/WTF/wtf/MemoryPressureHandler.cpp:
(WTF::thresholdForMemoryKillOfActiveProcess):
(WTF::thresholdForMemoryKillOfInactiveProcess):
Also use CPU(ADDRESS64)
Canonical link: https://commits.webkit.org/254533@main
(cherry picked from commit b0895ea02d480a799a9826620683d6b49ccdaf21)
More information about the webkit-changes
mailing list