| 1 | From 4d2ada29872460c1d4718763967a0bf059094590 Mon Sep 17 00:00:00 2001
|
| 2 | From: fossdd <[email protected]>
|
| 3 | Date: Sun, 13 Jul 2025 02:00:27 +0200
|
| 4 | Subject: [PATCH 2/2] no-malloc_trim
|
| 5 |
|
| 6 | Signed-off-by: fossdd <[email protected]>
|
| 7 | ---
|
| 8 | src/plugins/coreplugin/icore.cpp | 3 ---
|
| 9 | 1 file changed, 3 deletions(-)
|
| 10 |
|
| 11 | diff --git a/src/plugins/coreplugin/icore.cpp b/src/plugins/coreplugin/icore.cpp
|
| 12 | index e0c75926f32..bfb147c98c3 100644
|
| 13 | |
| 14 | |
| 15 | @@ -1485,9 +1485,6 @@ void ICorePrivate::init()
|
| 16 | using namespace std::chrono_literals;
|
| 17 | m_trimTimer.setInterval(60s);
|
| 18 | // glibc may not actually free memory in free().
|
| 19 | -#ifdef Q_OS_LINUX
|
| 20 | - connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
|
| 21 | -#endif
|
| 22 | }
|
| 23 | }
|
| 24 |
|
| 25 | --
|
| 26 | 2.50.1
|
| 27 |
|