void-packages/srcpkgs/webkit2gtk/patches/musl-malloc_trim.patch
2015-06-17 09:43:42 +02:00

15 lines
410 B
Diff

There is no malloc_trim() in musl libc
--- Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp
+++ Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp
@@ -206,8 +206,10 @@
void MemoryPressureHandler::platformReleaseMemory(bool)
{
+#if defined(__GLIBC__)
ReliefLogger log("Run malloc_trim");
malloc_trim(0);
+#endif
}
void MemoryPressureHandler::ReliefLogger::platformLog()