OSDN Git Service

Disable adding main and non moving spaces to immune region in GSS
authorMathieu Chartier <mathieuc@google.com>
Mon, 14 Jul 2014 21:57:16 +0000 (14:57 -0700)
committerMathieu Chartier <mathieuc@google.com>
Wed, 16 Jul 2014 19:34:43 +0000 (12:34 -0700)
commit4c13a3ff475f206c4d0a86ee2595c45392fd942f
tree5a96dff1dd5952aa70c2f25de46ea89d93e9225b
parent524e5e3815d2b16ee77beda9976b7ec3aa54aba6
Disable adding main and non moving spaces to immune region in GSS

Disabled adding the main and non moving space to the immune region.
This will enable us to recycle bump pointer spaces for malloc space
-> malloc space compaction as well as collector transitions.

Also added logic for falling back to the non moving space, we may
copy objects there.

Refactored mod union table logic into MarkReachableObjects.

No measurable performance benefit or regression.

Bug: 14059466
Bug: 16291259

Change-Id: If663d9fdbde943b988173b7f6ac844e5f78a0327
14 files changed:
runtime/base/macros.h
runtime/check_jni.cc
runtime/class_linker.h
runtime/gc/accounting/mod_union_table.cc
runtime/gc/collector/mark_sweep-inl.h
runtime/gc/collector/mark_sweep.cc
runtime/gc/collector/semi_space-inl.h
runtime/gc/collector/semi_space.cc
runtime/gc/collector/semi_space.h
runtime/gc/heap.cc
runtime/gc/heap.h
runtime/gc/space/space.h
runtime/object_callbacks.h
runtime/utils.h