commit | 4c6d765dae35f7a3e7cafdbe346821622e65d6d4 | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Fri Nov 01 09:23:19 2019 -0700 |
committer | Hans Boehm <hboehm@google.com> | Wed Nov 06 09:40:31 2019 +0000 |
tree | 378a564aacb0a0cd50ec68a717f2fae1c8b3d80a | |
parent | 93e5ae90697d879a82103b492c6853cda11d0925 [diff] |
Make GetBytesAllocatedEver() monotonic Make the _freed_ever_ counters atomic, since they can apparently be read concurrently. This removes the data race. We enforce monotonicity in a brute force way, which is probably good enough here. The results remain approximate, as they always were. Bug: 142328050 Test: Built AOSP. Change-Id: Ifb8520d0edee7cadadc62f59992c6d9b67251c32