Changeset 232881 in webkit
- Timestamp:
- Jun 15, 2018 10:35:30 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r232879 r232881 1 2018-06-15 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK][WKE] Disable memory pressure handling when running layout tests (WTR) 4 https://bugs.webkit.org/show_bug.cgi?id=186663 5 6 Reviewed by Michael Catanzaro. 7 8 r196943 added a mechanism to disable the memory pressure handling 9 on Mac. This patch enables using that mechanism also for GTK/WPE. 10 To do that the environment variable WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR 11 should bet set to 1. 12 We want to use this on the layout tests to avoid flaky tests caused 13 by accumulated leaks on the WebProcess by different tests. 14 15 * UIProcess/gtk/WebProcessPoolGtk.cpp: 16 (WebKit::WebProcessPool::platformInitializeWebProcess): 17 * UIProcess/wpe/WebProcessPoolWPE.cpp: 18 (WebKit::WebProcessPool::platformInitializeWebProcess): 19 1 20 2018-06-15 Per Arne Vollan <pvollan@apple.com> 2 21 -
trunk/Source/WebKit/UIProcess/gtk/WebProcessPoolGtk.cpp
r230625 r232881 98 98 parameters.shouldAlwaysUseComplexTextCodePath = m_alwaysUsesComplexTextCodePath; 99 99 100 const char* disableMemoryPressureMonitor = getenv("WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR"); 101 if (disableMemoryPressureMonitor && !strcmp(disableMemoryPressureMonitor, "1")) 102 parameters.shouldSuppressMemoryPressureHandler = true; 103 100 104 #if USE(GSTREAMER) 101 105 parameters.gstreamerOptions = WebCore::extractGStreamerOptionsFromCommandLine(); -
trunk/Source/WebKit/UIProcess/wpe/WebProcessPoolWPE.cpp
r230625 r232881 94 94 { 95 95 parameters.memoryCacheDisabled = m_memoryCacheDisabled || cacheModel() == CacheModelDocumentViewer; 96 97 const char* disableMemoryPressureMonitor = getenv("WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR"); 98 if (disableMemoryPressureMonitor && !strcmp(disableMemoryPressureMonitor, "1")) 99 parameters.shouldSuppressMemoryPressureHandler = true; 100 96 101 #if USE(GSTREAMER) 97 102 parameters.gstreamerOptions = WebCore::extractGStreamerOptionsFromCommandLine(); -
trunk/Tools/ChangeLog
r232877 r232881 1 2018-06-15 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK][WKE] Disable memory pressure handling when running layout tests (WTR) 4 https://bugs.webkit.org/show_bug.cgi?id=186663 5 6 Reviewed by Michael Catanzaro. 7 8 Disable memory pressure handling when running tests via WTR by 9 setting WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR=1 on the environment. 10 11 * WebKitTestRunner/gtk/main.cpp: 12 (main): 13 * WebKitTestRunner/wpe/main.cpp: 14 (main): 15 1 16 2018-06-15 Jonathan Bedard <jbedard@apple.com> 2 17 -
trunk/Tools/WebKitTestRunner/gtk/main.cpp
r230559 r232881 34 34 { 35 35 g_setenv("WEBKIT_FORCE_COMPLEX_TEXT", "0", FALSE); 36 g_setenv("WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR", "1", FALSE); 36 37 37 38 gtk_init(&argc, &argv); -
trunk/Tools/WebKitTestRunner/wpe/main.cpp
r216497 r232881 27 27 28 28 #include "TestController.h" 29 #include <glib.h> 29 30 30 31 int main(int argc, char** argv) 31 32 { 33 g_setenv("WEBKIT_DISABLE_MEMORY_PRESSURE_MONITOR", "1", FALSE); 34 32 35 WTR::TestController controller(argc, const_cast<const char**>(argv)); 33 36 return 0;
Note: See TracChangeset
for help on using the changeset viewer.