summaryrefslogtreecommitdiffstats
path: root/runtime/gc/collector/semi_space-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/collector/semi_space-inl.h')
-rw-r--r--runtime/gc/collector/semi_space-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/gc/collector/semi_space-inl.h b/runtime/gc/collector/semi_space-inl.h
index d60298b..df731ff 100644
--- a/runtime/gc/collector/semi_space-inl.h
+++ b/runtime/gc/collector/semi_space-inl.h
@@ -45,9 +45,9 @@ inline void SemiSpace::MarkObject(
if (obj == nullptr) {
return;
}
- if (kUseBrooksPointer) {
+ if (kUseBakerOrBrooksReadBarrier) {
// Verify all the objects have the correct forward pointer installed.
- obj->AssertSelfBrooksPointer();
+ obj->AssertReadBarrierPointer();
}
if (!immune_region_.ContainsObject(obj)) {
if (from_space_->HasAddress(obj)) {