From 79656e93c2d70e5352086e43906bd7ad319fb4c5 Mon Sep 17 00:00:00 2001 From: "Jayachandran C." Date: Tue, 24 Apr 2012 11:42:48 +0000 Subject: [PATCH] jemalloc: pointer size definition for 64-bit mips platforms LG_SIZEOF_PTR has to be defined as 3 when jemalloc is compiled for 64 bit platforms. Reviewed by: juli Approved by: jasone --- contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h index 2c5797fde876..9efab93969a5 100644 --- a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h +++ b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h @@ -41,8 +41,12 @@ # define LG_SIZEOF_PTR 2 #endif #ifdef __mips__ +#ifdef __mips_n64 +# define LG_SIZEOF_PTR 3 +#else # define LG_SIZEOF_PTR 2 #endif +#endif #ifdef __powerpc64__ # define LG_SIZEOF_PTR 3 #elif defined(__powerpc__)