summaryrefslogtreecommitdiff
path: root/runtime/mirror/object-inl.h
diff options
context:
space:
mode:
author Lokesh Gidra <lokeshgidra@google.com> 2021-11-21 11:45:19 -0800
committer Lokesh Gidra <lokeshgidra@google.com> 2022-08-10 18:06:05 +0000
commit384c7861b27f6b5ded42a32ab7d14a48c987f515 (patch)
tree0278e3ab48c9304caf32e6288d5636706143a22f /runtime/mirror/object-inl.h
parent528b169d1351f3606778ba10fe9ae8fcecf7a7c4 (diff)
Handle black allocations in concurrent mark-compact
Test: art/test/testrunner/testrunner.py Bug: 160737021 Change-Id: I4ad6d090cbf87a9120bbc4aaf778a2e1b0d8ae6b
Diffstat (limited to 'runtime/mirror/object-inl.h')
-rw-r--r--runtime/mirror/object-inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/object-inl.h b/runtime/mirror/object-inl.h
index c679fded32..0ac71bfa2c 100644
--- a/runtime/mirror/object-inl.h
+++ b/runtime/mirror/object-inl.h
@@ -880,7 +880,7 @@ inline void Object::VisitFieldsReferences(uint32_t ref_offsets, const Visitor& v
// inheritance hierarchy and find reference offsets the hard way. In the static case, just
// consider this class.
for (ObjPtr<Class> klass = kIsStatic
- ? AsClass<kVerifyFlags>()
+ ? ObjPtr<Class>::DownCast(this)
: GetClass<kVerifyFlags, kReadBarrierOption>();
klass != nullptr;
klass = kIsStatic ? nullptr : klass->GetSuperClass<kVerifyFlags, kReadBarrierOption>()) {