aboutsummaryrefslogtreecommitdiffstats
path: root/include/jemalloc/internal
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2017-08-07 22:00:22 -0700
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-08-08 10:30:21 -0700
commit048c6679cd0ef1500d0609dce48fcd823d15d93b (patch)
tree5c59c73bb2de7e11b7f71560064241c4f784e608 /include/jemalloc/internal
parent1ab2ab294c8f29a6f314f3ff30fbf4cdb2f01af6 (diff)
downloadplatform_external_jemalloc_new-048c6679cd0ef1500d0609dce48fcd823d15d93b.tar.gz
platform_external_jemalloc_new-048c6679cd0ef1500d0609dce48fcd823d15d93b.tar.bz2
platform_external_jemalloc_new-048c6679cd0ef1500d0609dce48fcd823d15d93b.zip
Remove external linkage for spin_adaptive
The external linkage for spin_adaptive was not used, and the inline declaration of spin_adaptive that was used caused a probem on FreeBSD where CPU_SPINWAIT is implemented as a call to a static procedure for x86 architectures.
Diffstat (limited to 'include/jemalloc/internal')
-rw-r--r--include/jemalloc/internal/spin.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/jemalloc/internal/spin.h b/include/jemalloc/internal/spin.h
index e2afc98c..aded0fcc 100644
--- a/include/jemalloc/internal/spin.h
+++ b/include/jemalloc/internal/spin.h
@@ -1,19 +1,13 @@
#ifndef JEMALLOC_INTERNAL_SPIN_H
#define JEMALLOC_INTERNAL_SPIN_H
-#ifdef JEMALLOC_SPIN_C_
-# define SPIN_INLINE extern inline
-#else
-# define SPIN_INLINE inline
-#endif
-
#define SPIN_INITIALIZER {0U}
typedef struct {
unsigned iteration;
} spin_t;
-SPIN_INLINE void
+static inline void
spin_adaptive(spin_t *spin) {
volatile uint32_t i;