Convert arena->prof_accumbytes synchronization to atomics.

This commit is contained in:
Jason Evans
2017-02-12 17:03:46 -08:00
parent b779522b9b
commit fa2d64c94b
15 changed files with 128 additions and 59 deletions

View File

@@ -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;