svn commit: r234646 - head/contrib/jemalloc/include/jemalloc

Jayachandran C. jchandra at FreeBSD.org
Tue Apr 24 11:42:49 UTC 2012


Author: jchandra
Date: Tue Apr 24 11:42:48 2012
New Revision: 234646
URL: http://svn.freebsd.org/changeset/base/234646

Log:
  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

Modified:
  head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h

Modified: head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h
==============================================================================
--- head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h	Tue Apr 24 10:20:24 2012	(r234645)
+++ head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h	Tue Apr 24 11:42:48 2012	(r234646)
@@ -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__)


More information about the svn-src-all mailing list