diff --git a/src/system/libroot/posix/rpmalloc/rpmalloc.cpp b/src/system/libroot/posix/rpmalloc/rpmalloc.cpp index 4fd7fb9e9d..2bcb96cbef 100644 --- a/src/system/libroot/posix/rpmalloc/rpmalloc.cpp +++ b/src/system/libroot/posix/rpmalloc/rpmalloc.cpp @@ -61,9 +61,13 @@ #define DISABLE_UNMAP 0 #endif #ifndef DEFAULT_SPAN_MAP_COUNT +#ifdef __HAIKU__ +#define DEFAULT_SPAN_MAP_COUNT 32 +#else //! Default number of spans to map in call to map more virtual memory (default values yield 4MiB here) #define DEFAULT_SPAN_MAP_COUNT 64 #endif +#endif #if ENABLE_THREAD_CACHE #ifndef ENABLE_UNLIMITED_CACHE