Convert accumbytes in prof_accum_t to C11 atomics, when possible

This commit is contained in:
David Goldblatt
2017-04-04 18:08:58 -07:00
committed by David Goldblatt
parent 55d992c48c
commit 30d74db08e
3 changed files with 12 additions and 6 deletions

View File

@@ -18,8 +18,10 @@ typedef struct {
struct prof_accum_s {
#ifndef JEMALLOC_ATOMIC_U64
malloc_mutex_t mtx;
#endif
uint64_t accumbytes;
#else
atomic_u64_t accumbytes;
#endif
};
struct prof_cnt_s {