mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-05-04 19:09:57 +03:00
Convert accumbytes in prof_accum_t to C11 atomics, when possible
This commit is contained in:
parent
55d992c48c
commit
30d74db08e
3 changed files with 12 additions and 6 deletions
|
|
@ -1758,8 +1758,10 @@ prof_accum_init(tsdn_t *tsdn, prof_accum_t *prof_accum) {
|
|||
WITNESS_RANK_PROF_ACCUM)) {
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
prof_accum->accumbytes = 0;
|
||||
#else
|
||||
atomic_store_u64(&prof_accum->accumbytes, 0, ATOMIC_RELAXED);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue