Convert arena->prof_accumbytes synchronization to atomics.
This commit is contained in:
@@ -15,6 +15,13 @@ typedef struct {
|
||||
} prof_unwind_data_t;
|
||||
#endif
|
||||
|
||||
struct prof_accum_s {
|
||||
#ifndef JEMALLOC_ATOMIC_U64
|
||||
malloc_mutex_t mtx;
|
||||
#endif
|
||||
uint64_t accumbytes;
|
||||
};
|
||||
|
||||
struct prof_cnt_s {
|
||||
/* Profiling counters. */
|
||||
uint64_t curobjs;
|
||||
|
Reference in New Issue
Block a user