From 86d552aca261c128c6fd628da73f043229adc13e Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Sat, 1 Jun 2019 11:30:51 -0400 Subject: [PATCH] rpmalloc: Increase the thread cache multiplier somewhat. Now that the previous commit introduced the adaptive thread cache, the thread cache multiplier is just a "hard limit", and often not reached. So we can increase it a bit without adversely affecting memory usage that much. --- src/system/libroot/posix/rpmalloc/rpmalloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/rpmalloc/rpmalloc.cpp b/src/system/libroot/posix/rpmalloc/rpmalloc.cpp index bb412c4c62..e8aad8f6b5 100644 --- a/src/system/libroot/posix/rpmalloc/rpmalloc.cpp +++ b/src/system/libroot/posix/rpmalloc/rpmalloc.cpp @@ -77,7 +77,7 @@ #if !ENABLE_UNLIMITED_THREAD_CACHE //! Multiplier for thread cache (cache limit will be span release count multiplied by this value) #ifdef __HAIKU__ -#define THREAD_CACHE_MULTIPLIER 4 +#define THREAD_CACHE_MULTIPLIER 8 #else #define THREAD_CACHE_MULTIPLIER 16 #endif