summaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/base_structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/jemalloc/internal/base_structs.h')
-rw-r--r--include/jemalloc/internal/base_structs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/jemalloc/internal/base_structs.h b/include/jemalloc/internal/base_structs.h
index bad37c06..13d5bd46 100644
--- a/include/jemalloc/internal/base_structs.h
+++ b/include/jemalloc/internal/base_structs.h
@@ -17,11 +17,11 @@ struct base_s {
/* Associated arena's index within the arenas array. */
unsigned ind;
- /* User-configurable extent hook functions. */
- union {
- extent_hooks_t *extent_hooks;
- void *extent_hooks_pun;
- };
+ /*
+ * User-configurable extent hook functions. Points to an
+ * extent_hooks_t.
+ */
+ atomic_p_t extent_hooks;
/* Protects base_alloc() and base_stats_get() operations. */
malloc_mutex_t mtx;