We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 167c0c7 commit b7650c2Copy full SHA for b7650c2
src/snmalloc/ds_core/stats.h
@@ -80,8 +80,8 @@ namespace snmalloc
80
81
void operator+=(const MonotoneLocalStat& other)
82
{
83
- value.fetch_add(
84
- other.value.load(std::memory_order_relaxed), std::memory_order_relaxed);
+ auto v = other.value.load(std::memory_order_relaxed);
+ value.fetch_add(v, std::memory_order_relaxed);
85
}
86
87
size_t operator*()
0 commit comments