summaryrefslogtreecommitdiffstats
path: root/runtime/gc/space/zygote_space.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/space/zygote_space.cc')
-rw-r--r--runtime/gc/space/zygote_space.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/space/zygote_space.cc b/runtime/gc/space/zygote_space.cc
index 0466413..fb3a12e 100644
--- a/runtime/gc/space/zygote_space.cc
+++ b/runtime/gc/space/zygote_space.cc
@@ -115,7 +115,7 @@ void ZygoteSpace::SweepCallback(size_t num_ptrs, mirror::Object** ptrs, void* ar
// Need to mark the card since this will update the mod-union table next GC cycle.
card_table->MarkCard(ptrs[i]);
}
- zygote_space->objects_allocated_.FetchAndSub(num_ptrs);
+ zygote_space->objects_allocated_.FetchAndSubSequentiallyConsistent(num_ptrs);
}
} // namespace space