From 384c7861b27f6b5ded42a32ab7d14a48c987f515 Mon Sep 17 00:00:00 2001 From: Lokesh Gidra Date: Sun, 21 Nov 2021 11:45:19 -0800 Subject: Handle black allocations in concurrent mark-compact Test: art/test/testrunner/testrunner.py Bug: 160737021 Change-Id: I4ad6d090cbf87a9120bbc4aaf778a2e1b0d8ae6b --- runtime/mirror/object-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/mirror/object-inl.h') 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 klass = kIsStatic - ? AsClass() + ? ObjPtr::DownCast(this) : GetClass(); klass != nullptr; klass = kIsStatic ? nullptr : klass->GetSuperClass()) { -- cgit v1.2.3-59-g8ed1b