From 07c2fec6b025d5cc104ab4f210c3941528f56fd6 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 4 Jul 2022 08:57:31 +0000 Subject: Revert "Adjust how we assign vtable indexes during class loading." This reverts commit 868e576d4f67026bb7109286f922cb26e0e84145. Bug: 211854716 Bug: 233545487 Reason for revert: Some inaccuracies in the comments. Change-Id: Iddfe66c7748ef2f617d06d5dbcb8787a18e22125 --- runtime/mirror/array-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/mirror/array-inl.h') diff --git a/runtime/mirror/array-inl.h b/runtime/mirror/array-inl.h index b7a8a8ce49..b0e77b45a6 100644 --- a/runtime/mirror/array-inl.h +++ b/runtime/mirror/array-inl.h @@ -98,7 +98,7 @@ inline void PrimitiveArray::SetWithoutChecks(int32_t i, T value) { if (kTransactionActive) { Runtime::Current()->RecordWriteArray(this, i, GetWithoutChecks(i)); } - DCHECK(CheckIsValidIndex(i)) << i << " " << GetLength(); + DCHECK(CheckIsValidIndex(i)); GetData()[i] = value; } // Backward copy where elements are of aligned appropriately for T. Count is in T sized units. -- cgit v1.2.3-59-g8ed1b