Skip to content

Commit

Permalink
Unreviewed. Disable the WebProcess memory monitor in 32 bits.
Browse files Browse the repository at this point in the history
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
  • Loading branch information
carlosgcampos committed Jan 24, 2018
1 parent 6b7fe40 commit 33a48a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,10 @@
2018-01-24 Carlos Garcia Campos <cgarcia@igalia.com>

Unreviewed. Disable the WebProcess memory monitor in 32 bits.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):

2017-10-27 Daniel Bates <dabates@apple.com>

Attempt to fix the Apple El Capitan build following <https://trac.webkit.org/changeset/224134>
Expand Down
2 changes: 2 additions & 0 deletions Source/WebKit/WebProcess/WebProcess.cpp
Expand Up @@ -265,6 +265,7 @@ void WebProcess::initializeWebProcess(WebProcessCreationParameters&& parameters)
WebCore::releaseMemory(critical, synchronous);
});
#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200) || PLATFORM(GTK) || PLATFORM(WPE)
#if CPU(X86_64) || CPU(ARM64)
memoryPressureHandler.setShouldUsePeriodicMemoryMonitor(true);
memoryPressureHandler.setMemoryKillCallback([this] () {
WebCore::logMemoryStatisticsAtTimeOfDeath();
Expand All @@ -276,6 +277,7 @@ void WebProcess::initializeWebProcess(WebProcessCreationParameters&& parameters)
memoryPressureHandler.setDidExceedInactiveLimitWhileActiveCallback([this] () {
parentProcessConnection()->send(Messages::WebProcessProxy::DidExceedInactiveMemoryLimitWhileActive(), 0);
});
#endif
#endif
memoryPressureHandler.setMemoryPressureStatusChangedCallback([this](bool isUnderMemoryPressure) {
if (parentProcessConnection())
Expand Down

0 comments on commit 33a48a9

Please sign in to comment.