This adds simple local & global stats classes to be used by the Primary
and Secondary, and associated test. Note that we don't need the strict
atomicity of the addition & subtraction (as is in sanitizer_common) so
we just use load & store.
Details
Details
Diff Detail
Diff Detail
- Repository
- rCRT Compiler Runtime
Event Timeline
lib/scudo/standalone/stats.h | ||
---|---|---|
32 | Oh, I didn't ask to remove. |
lib/scudo/standalone/stats.h | ||
---|---|---|
80 | Maybe: for (StatType Ty = 0; Ty < StatCount; Ty++) add(Ty, S->get(Ty)); |
If this is per-thread, why do we need atomics?
Just to make GlobalStats::get