summaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/base_structs.h
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2017-04-04 17:32:21 -0700
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2017-04-05 16:25:37 -0700
commit92aafb0efe47dbca23fb5b54c33fd4504601ae76 (patch)
treeaf6184752c1e6144284028366fd15888f12b8609 /include/jemalloc/internal/base_structs.h
parent56b72c7b1781ef75c2450a08e08079fe164bb2df (diff)
Make base_t's extent_hooks field C11-atomic
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;