OSDN Git Service

Improve immune spaces logic
authorMathieu Chartier <mathieuc@google.com>
Tue, 23 Feb 2016 03:32:16 +0000 (19:32 -0800)
committerMathieu Chartier <mathieuc@google.com>
Sat, 27 Feb 2016 01:20:00 +0000 (17:20 -0800)
commit17b8bce064fe4c0b29117abe489b7f8c2c950d43
tree6f50d4672163cce20080cfb6eb566b974aa5e729
parentc37a3eb8180d6488466961239eabc9ab0712bd05
Improve immune spaces logic

We now properly include the largest continuous region with the most
image bytes. Oat bytes are considered as part of the region but are
not counted when comparing. This can result in more image bytes in
cases where large oat files were previously included for the immune
region.

Also added handling for adjacent oat files:
[image][image][oat][oat][space] will now properly be a single region.

Bug: 27136196
Change-Id: If2c002176dd32122e320e8a94551df46bd95256a
runtime/gc/collector/immune_spaces.cc
runtime/gc/collector/immune_spaces_test.cc