Title: [285265] trunk/Source/WebKit
- Revision
- 285265
- Author
- [email protected]
- Date
- 2021-11-04 09:38:58 -0700 (Thu, 04 Nov 2021)
Log Message
REGRESSION(r285077) [GLIB] 'MemoryPressureMonitor' has not been declared
https://bugs.webkit.org/show_bug.cgi?id=232706
Unreviewed non-linux build fix.
MemoryPressureMonitor is only available on Linux, so its usage should
be guarded, like WebProcessPool.cpp does when starting it.
* UIProcess/glib/WebProcessPoolGLib.cpp:
(WebKit::WebProcessPool::platformInitialize): Add OS(LINUX) guard.
(WebKit::WebProcessPool::platformInitializeWebProcess): Ditto.
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (285264 => 285265)
--- trunk/Source/WebKit/ChangeLog 2021-11-04 16:28:50 UTC (rev 285264)
+++ trunk/Source/WebKit/ChangeLog 2021-11-04 16:38:58 UTC (rev 285265)
@@ -1,3 +1,17 @@
+2021-11-04 Lauro Moura <[email protected]>
+
+ REGRESSION(r285077) [GLIB] 'MemoryPressureMonitor' has not been declared
+ https://bugs.webkit.org/show_bug.cgi?id=232706
+
+ Unreviewed non-linux build fix.
+
+ MemoryPressureMonitor is only available on Linux, so its usage should
+ be guarded, like WebProcessPool.cpp does when starting it.
+
+ * UIProcess/glib/WebProcessPoolGLib.cpp:
+ (WebKit::WebProcessPool::platformInitialize): Add OS(LINUX) guard.
+ (WebKit::WebProcessPool::platformInitializeWebProcess): Ditto.
+
2021-11-04 Brent Fulgham <[email protected]>
[iOS] Update IOKit message filters for later iOS releases
Modified: trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp (285264 => 285265)
--- trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp 2021-11-04 16:28:50 UTC (rev 285264)
+++ trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp 2021-11-04 16:38:58 UTC (rev 285265)
@@ -61,8 +61,10 @@
if (const char* forceComplexText = getenv("WEBKIT_FORCE_COMPLEX_TEXT"))
m_alwaysUsesComplexTextCodePath = !strcmp(forceComplexText, "1");
+#if OS(LINUX)
if (!MemoryPressureMonitor::disabled())
installMemoryPressureHandler();
+#endif
}
void WebProcessPool::platformInitializeWebProcess(const WebProcessProxy& process, WebProcessCreationParameters& parameters)
@@ -92,8 +94,10 @@
parameters.memoryCacheDisabled = m_memoryCacheDisabled || LegacyGlobalSettings::singleton().cacheModel() == CacheModel::DocumentViewer;
+#if OS(LINUX)
if (MemoryPressureMonitor::disabled())
parameters.shouldSuppressMemoryPressureHandler = true;
+#endif
#if USE(GSTREAMER)
parameters.gstreamerOptions = WebCore::extractGStreamerOptionsFromCommandLine();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes