diff options
| author | 2018-03-27 18:48:59 -0700 | |
|---|---|---|
| committer | 2018-03-29 18:41:35 +0100 | |
| commit | 637e0b486abed0ae739a6cfe387179320db87475 (patch) | |
| tree | ce516367e820f3e8ac8b1b41846b146e2b8939b8 /compiler/optimizing/optimizing_compiler.cc | |
| parent | 80f5fe5fa4fd4044c409b39db0f6b1b77542ce6e (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.
(cherry picked from commit f2a69313826f793a7ebeb5ed09ba002904495fc9)
Bug: 74763563
Test: make test-art
Change-Id: I197b94b317499281e379733d53ad19794dbe772a
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
0 files changed, 0 insertions, 0 deletions