From b01d49664651f239fdf76774cb6de05ed7e63f4a Mon Sep 17 00:00:00 2001 From: Kevin Svetlitski Date: Fri, 28 Jul 2023 11:54:27 -0700 Subject: [PATCH] Add an override for the compile-time malloc_conf to `jemalloc_internal_overrides.h` --- include/jemalloc/internal/jemalloc_internal_overrides.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/jemalloc/internal/jemalloc_internal_overrides.h b/include/jemalloc/internal/jemalloc_internal_overrides.h index ddd6ee17..5fbbe249 100644 --- a/include/jemalloc/internal/jemalloc_internal_overrides.h +++ b/include/jemalloc/internal/jemalloc_internal_overrides.h @@ -13,4 +13,9 @@ #define LG_PAGE JEMALLOC_OVERRIDE_LG_PAGE #endif +#ifdef JEMALLOC_OVERRIDE_JEMALLOC_CONFIG_MALLOC_CONF + #undef JEMALLOC_CONFIG_MALLOC_CONF + #define JEMALLOC_CONFIG_MALLOC_CONF JEMALLOC_OVERRIDE_JEMALLOC_CONFIG_MALLOC_CONF +#endif + #endif /* JEMALLOC_INTERNAL_OVERRIDES_H */