Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory allocations counters on macOS. (#2673)
Motivation: Allocation counters are broken on macOS as described [here](#2672). This PR fixes it. Modifications: `AtomicCounter` library is made `.dynamic`. This deduplicates the two (static) copies that used to exist. One embedded in the main binary, and the other in `HookedFunctions` dylib. This deplication fixes the issue, because there is just one copy of the counters in the process address space. Result: All the tests counting allocations and related statistics work on macOS.
- Loading branch information