From b0f1487a22385ad2917b9f4651114197e6e26be3 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 22 Aug 2019 08:49:16 -0700 Subject: [PATCH] ircd::allocator: Set narenas=1 for je. --- ircd/allocator_je.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ircd/allocator_je.cc b/ircd/allocator_je.cc index 34757dc27..d1db57f6f 100644 --- a/ircd/allocator_je.cc +++ b/ircd/allocator_je.cc @@ -19,6 +19,15 @@ namespace ircd::allocator extern info::versions je_malloc_version_abi; } +#if defined(IRCD_ALLOCATOR_USE_JEMALLOC) && defined(HAVE_JEMALLOC_H) +const char * +__attribute__((weak)) +malloc_conf +{ + "narenas:1," +}; +#endif + decltype(ircd::allocator::je_malloc_version_api) ircd::allocator::je_malloc_version_api {