summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2019-11-01 09:23:19 -0700
committerHans Boehm <hboehm@google.com>2019-11-06 09:40:31 +0000
commit4c6d765dae35f7a3e7cafdbe346821622e65d6d4 (patch)
tree378a564aacb0a0cd50ec68a717f2fae1c8b3d80a /compiler/optimizing/graph_visualizer.cc
parent93e5ae90697d879a82103b492c6853cda11d0925 (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 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions