mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-06-05 11:44:18 +03:00
Make base_t's extent_hooks field C11-atomic
This commit is contained in:
parent
56b72c7b17
commit
92aafb0efe
2 changed files with 9 additions and 15 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue