aboutsummaryrefslogtreecommitdiffstats
path: root/community/webkit2gtk/disallow-malloc_trim.patch
blob: 34d4905dfc759de38c43303bdd8138eb151487c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- webkitgtk-2.10.3/Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp.orig
+++ webkitgtk-2.10.3/Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp
@@ -202,7 +202,9 @@
 void MemoryPressureHandler::platformReleaseMemory(Critical)
 {
     ReliefLogger log("Run malloc_trim");
+#if defined(__GLIBC__)
     malloc_trim(0);
+#endif
 }
 
 void MemoryPressureHandler::ReliefLogger::platformLog()