OSDN Git Service

Clear empty unevac regions in ClearFromSpace
authorMathieu Chartier <mathieuc@google.com>
Tue, 28 Feb 2017 00:37:21 +0000 (16:37 -0800)
committerMathieu Chartier <mathieuc@google.com>
Fri, 3 Mar 2017 00:40:26 +0000 (16:40 -0800)
commit371b04724522c5acbb76878e5825a308ef065f32
tree99193548cbfc17840ba0f323fb164d7826566136
parentec78cc266a5ec7fdbaeb41eb645fa1a431eaa61d
Clear empty unevac regions in ClearFromSpace

The motivation is to release RAM for empty unevac regions at the end
of the current GC instead of next GC.

Results on RitzPerf:
This optimization accounts for 2.33GB out of 53GB of freed bytes ~4%.
This also means that the average heap size is probably 4% smaller,
though it may not translate to RAM savings for actual apps.

Bug: 35800768
Bug: 12687968

Test: test-art-host
Change-Id: I38fa8dcda1aa6b439060ff170941b3a53022846f
runtime/gc/collector/concurrent_copying.cc
runtime/gc/space/region_space-inl.h
runtime/gc/space/region_space.cc
runtime/gc/space/region_space.h