Skip to content

[Memory ordering] Statistics

Ben Gamari requested to merge wip/tsan/stats into master

This is part of a large-scale refactoring of our use of atomic memory operations (or, rather, fixing the lack therefore) in the runtime system. See !2642 (merged) for details.

Locking for statistics

Here we introduce a mutex to protect the statistics tracked in rts/Stats.c. While on face value this seems a bit heavy, I think it's far better than enforcing ordering on every access.

Edited by Ben Gamari

Merge request reports