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

Jason Evans jasone at FreeBSD.org
Tue Aug 18 08:10:47 UTC 2015


Author: jasone
Date: Tue Aug 18 08:10:46 2015
New Revision: 286871
URL: https://svnweb.freebsd.org/changeset/base/286871

Log:
  Fix build failure due to missing CPU_SPINWAIT definition.

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 Aug 18 06:28:37 2015	(r286870)
+++ head/contrib/jemalloc/include/jemalloc/jemalloc_FreeBSD.h	Tue Aug 18 08:10:46 2015	(r286871)
@@ -57,6 +57,10 @@
 #  define JEMALLOC_TLS_MODEL	/* Default. */
 #endif
 
+#ifndef CPU_SPINWAIT
+#  define CPU_SPINWAIT do {} while (0)
+#endif
+
 #define	STATIC_PAGE_SHIFT	PAGE_SHIFT
 #define	LG_SIZEOF_INT		2
 #define	LG_SIZEOF_LONG		LG_SIZEOF_PTR


More information about the svn-src-head mailing list