Convert accumbytes in prof_accum_t to C11 atomics, when possible
This commit is contained in:
committed by
David Goldblatt
parent
55d992c48c
commit
30d74db08e
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user