From 2aec1ada9e1f01aa48a5163d4d1f98ceb1f3e8c0 Mon Sep 17 00:00:00 2001 From: Basilisk-Dev Date: Wed, 18 Mar 2026 17:48:41 -0400 Subject: [PATCH] Issue #2897 followup - Do not hardcode jemalloc page size on LoongArch Loongarch can run on either a 4k or 16k page size --- memory/mozjemalloc/jemalloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/memory/mozjemalloc/jemalloc.c b/memory/mozjemalloc/jemalloc.c index f4a9fd5d75..c89fb51b26 100644 --- a/memory/mozjemalloc/jemalloc.c +++ b/memory/mozjemalloc/jemalloc.c @@ -886,7 +886,8 @@ static const bool config_recycle = false; * controlling the malloc behavior are defined as compile-time constants * for best performance and cannot be altered at runtime. */ -#if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && !defined(__aarch64__) +#if !defined(__ia64__) && !defined(__sparc__) && !defined(__mips__) && \ + !defined(__aarch64__) && !defined(__loongarch__) && !defined(__loongarch64) #define MALLOC_STATIC_SIZES 1 #endif