Replace spin_init() with SPIN_INITIALIZER.
This commit is contained in:
@@ -445,7 +445,6 @@ size2index_compute
|
||||
size2index_lookup
|
||||
size2index_tab
|
||||
spin_adaptive
|
||||
spin_init
|
||||
stats_print
|
||||
tcache_alloc_easy
|
||||
tcache_alloc_large
|
||||
|
@@ -2,16 +2,10 @@
|
||||
#define JEMALLOC_INTERNAL_SPIN_INLINES_H
|
||||
|
||||
#ifndef JEMALLOC_ENABLE_INLINE
|
||||
void spin_init(spin_t *spin);
|
||||
void spin_adaptive(spin_t *spin);
|
||||
#endif
|
||||
|
||||
#if (defined(JEMALLOC_ENABLE_INLINE) || defined(JEMALLOC_SPIN_C_))
|
||||
JEMALLOC_INLINE void
|
||||
spin_init(spin_t *spin) {
|
||||
spin->iteration = 0;
|
||||
}
|
||||
|
||||
JEMALLOC_INLINE void
|
||||
spin_adaptive(spin_t *spin) {
|
||||
volatile uint64_t i;
|
||||
|
@@ -3,4 +3,6 @@
|
||||
|
||||
typedef struct spin_s spin_t;
|
||||
|
||||
#define SPIN_INITIALIZER {0U}
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_SPIN_TYPES_H */
|
||||
|
Reference in New Issue
Block a user