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/array-inl.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'runtime/mirror/array-inl.h') diff --git a/runtime/mirror/array-inl.h b/runtime/mirror/array-inl.h index b7a8a8ce49..a7faa376cd 100644 --- a/runtime/mirror/array-inl.h +++ b/runtime/mirror/array-inl.h @@ -36,12 +36,11 @@ inline uint32_t Array::ClassSize(PointerSize pointer_size) { return Class::ComputeClassSize(true, vtable_entries, 0, 0, 0, 0, 0, pointer_size); } -template +template inline size_t Array::SizeOf() { - // No read barrier is needed for reading a constant primitive field through - // constant reference field chain. See ReadBarrierOption. size_t component_size_shift = - GetClass()->GetComponentSizeShift(); + GetClass() + ->template GetComponentSizeShift(); // Don't need to check this since we already check this in GetClass. int32_t component_count = GetLength(kVerifyFlags & ~kVerifyThis)>(); -- cgit v1.2.3-59-g8ed1b