Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2012 11:42:48 +0000 (UTC)
From:      "Jayachandran C." <jchandra@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234646 - head/contrib/jemalloc/include/jemalloc
Message-ID:  <201204241142.q3OBgmck046969@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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__)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204241142.q3OBgmck046969>