From 27f29e424ba9c4f8208e9dd98cb3d39eeb76d5ee Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 1 May 2020 22:08:37 +0100 Subject: [PATCH] LQ_QUANTUM should be 4 on mips64 hardware. This matches the ABI stack alignment requirements. --- include/jemalloc/internal/quantum.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/jemalloc/internal/quantum.h b/include/jemalloc/internal/quantum.h index 821086e9..11e870a3 100644 --- a/include/jemalloc/internal/quantum.h +++ b/include/jemalloc/internal/quantum.h @@ -34,7 +34,11 @@ # define LG_QUANTUM 3 # endif # ifdef __mips__ -# define LG_QUANTUM 3 +# if defined(__mips_n32) || defined(__mips_n64) +# define LG_QUANTUM 4 +# else +# define LG_QUANTUM 3 +# endif # endif # ifdef __nios2__ # define LG_QUANTUM 3