summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test_utils.h
diff options
context:
space:
mode:
authorLokesh Gidra <lokeshgidra@google.com>2018-03-27 18:48:59 -0700
committerLokesh Gidra <lokeshgidra@google.com>2018-03-29 05:05:07 -0700
commitf2a69313826f793a7ebeb5ed09ba002904495fc9 (patch)
tree5b84956dd750bb07842f26e4fb9e6cd03a6aa87e /compiler/optimizing/codegen_test_utils.h
parent4bf07f6921384d44987d68e6a6cabf32b9b90714 (diff)
Fix double accounting of skipped objects during copying
When an object is added to skipped_blocks_map_ due to thread losing the race on installing forwarding pointer during copying, we add the size of the object to num_bytes_allocated_. Later, when an object is allocated out of skipped_blocks_map_, num_bytes_allocated_ is not adjusted accordingly. So, when this object gets allocated (or gets added to skipped_blocks_map_ again due to losing the race), num_bytes_allocated_ goes off. Bug: 74763563 Test: make test-art Change-Id: I197b94b317499281e379733d53ad19794dbe772a
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions