summaryrefslogtreecommitdiff
path: root/runtime/read_barrier-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/read_barrier-inl.h')
-rw-r--r--runtime/read_barrier-inl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/read_barrier-inl.h b/runtime/read_barrier-inl.h
index b0434d8a81..6bc8f0b979 100644
--- a/runtime/read_barrier-inl.h
+++ b/runtime/read_barrier-inl.h
@@ -91,6 +91,10 @@ inline MirrorType* ReadBarrier::Barrier(
LOG(FATAL) << "Unexpected read barrier type";
UNREACHABLE();
}
+ } else if (with_read_barrier) {
+ // TODO: invoke MarkCompact's function which translates a pre-compact
+ // address to from-space address, if we are in the compaction phase.
+ return ref_addr->template AsMirrorPtr<kIsVolatile>();
} else {
// No read barrier.
return ref_addr->template AsMirrorPtr<kIsVolatile>();