You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
343 B
9 lines
343 B
malloc_trim() is unavailable with musl
|
|
--- a/src/plugins/coreplugin/icore.cpp
|
|
+++ b/src/plugins/coreplugin/icore.cpp
|
|
@@ -1276,3 +1276,3 @@
|
|
// glibc may not actually free memory in free().
|
|
-#ifdef Q_OS_LINUX
|
|
+#if defined(Q_OS_LINUX) && defined(__GLIBC__)
|
|
connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
|