From 61cbd382849baa8e0c3558e512339aefa309d16d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 18 Jun 2025 00:59:29 +0000 Subject: [PATCH] Fix unrecognized prof_active jemalloc_conf on aarch64. Signed-off-by: Jason Volk --- src/core/alloc/je.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/core/alloc/je.rs b/src/core/alloc/je.rs index 9b0fcae7..5151f845 100644 --- a/src/core/alloc/je.rs +++ b/src/core/alloc/je.rs @@ -33,9 +33,16 @@ pub static malloc_conf: &[u8] = const_str::concat_bytes!( 0 ); -#[cfg(all(feature = "jemalloc_conf", feature = "jemalloc_prof"))] +#[cfg(all( + feature = "jemalloc_conf", + feature = "jemalloc_prof", + target_arch = "x86_64", +))] const MALLOC_CONF_PROF: &str = ",prof_active:false"; -#[cfg(all(feature = "jemalloc_conf", not(feature = "jemalloc_prof")))] +#[cfg(all( + feature = "jemalloc_conf", + any(not(feature = "jemalloc_prof"), not(target_arch = "x86_64")), +))] const MALLOC_CONF_PROF: &str = ""; #[global_allocator]