summaryrefslogtreecommitdiffstats
path: root/runtime/gc/collector/partial_mark_sweep.cc
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-03-12 17:42:10 -0700
committerMathieu Chartier <mathieuc@google.com>2014-03-13 10:06:28 -0700
commit8d562103c3a3452fb15ef4b1c64df767b70507a4 (patch)
treed9fe8cacae77f597d676beb5086c03086f54e262 /runtime/gc/collector/partial_mark_sweep.cc
parentca46e2003360b44f4c043f6da87092592bc3d6d6 (diff)
downloadart-8d562103c3a3452fb15ef4b1c64df767b70507a4.zip
art-8d562103c3a3452fb15ef4b1c64df767b70507a4.tar.gz
art-8d562103c3a3452fb15ef4b1c64df767b70507a4.tar.bz2
Refactor immune region logic into its own file.
Added immune_region.cc/.h in the collector directory. Changed the functionality to no longer assume spaces are added to immune region in ascending order. Change-Id: Id1d643b3849ad2695e8a151dbbb74a5035644472
Diffstat (limited to 'runtime/gc/collector/partial_mark_sweep.cc')
-rw-r--r--runtime/gc/collector/partial_mark_sweep.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/collector/partial_mark_sweep.cc b/runtime/gc/collector/partial_mark_sweep.cc
index 8ec28f3..15f782a 100644
--- a/runtime/gc/collector/partial_mark_sweep.cc
+++ b/runtime/gc/collector/partial_mark_sweep.cc
@@ -39,7 +39,7 @@ void PartialMarkSweep::BindBitmaps() {
for (const auto& space : GetHeap()->GetContinuousSpaces()) {
if (space->GetGcRetentionPolicy() == space::kGcRetentionPolicyFullCollect) {
CHECK(space->IsZygoteSpace());
- ImmuneSpace(space);
+ CHECK(immune_region_.AddContinuousSpace(space)) << "Failed to add space " << *space;
}
}
}