diff options
author | Hans Boehm <hboehm@google.com> | 2019-11-01 09:23:19 -0700 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2019-11-06 09:40:31 +0000 |
commit | 4c6d765dae35f7a3e7cafdbe346821622e65d6d4 (patch) | |
tree | 378a564aacb0a0cd50ec68a717f2fae1c8b3d80a /test/MultiDex/Main.java | |
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
Diffstat (limited to 'test/MultiDex/Main.java')
0 files changed, 0 insertions, 0 deletions