summaryrefslogtreecommitdiffstats
path: root/contrib/jemalloc
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2012-04-24 11:42:48 +0000
committerjchandra <jchandra@FreeBSD.org>2012-04-24 11:42:48 +0000
commit9377bab13ff8998d97abdb55ba71997295190b87 (patch)
tree7c7c7f73f77ff0b1ffb3e124a14221165817e3a8 /contrib/jemalloc
parente367816dd29fdf52da1e1b4986aa7d8c7882b600 (diff)
downloadFreeBSD-src-9377bab13ff8998d97abdb55ba71997295190b87.zip
FreeBSD-src-9377bab13ff8998d97abdb55ba71997295190b87.tar.gz
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
Diffstat (limited to 'contrib/jemalloc')
-rw-r--r--contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h b/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
index 2c5797f..9efab93 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__)
OpenPOWER on IntegriCloud