From 0f6af5e3b51a7f5905d09a98ec8d531541666015 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 30 Jan 2023 14:29:11 +0000 Subject: Reland "Write classes in runtime-generated app image." This reverts commit 24b3d648ff6c2c200003f55ac63fc910d7bfd40f. Bug: 260557058 Reason for revert: - Encode class loader context in image, and check it at load time. - Set nterp entrypoint to methods that can. Test: test.py Test: atest com.android.bluetooth.opp.BluetoothOppObexServerSessionTest#onPut_withUnsupportedMimeTypeInHeader_returnsHttpBadRequest Change-Id: Ibf4a8604c4a226d1acc021103668e211446bb53c --- runtime/mirror/class.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'runtime/mirror/class.h') diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h index bd37534b6b..b9eb9d05b4 100644 --- a/runtime/mirror/class.h +++ b/runtime/mirror/class.h @@ -65,6 +65,7 @@ template class StrideIterator; template class PACKED(4) StackHandleScope; class Thread; class DexCacheVisitor; +class RuntimeImageHelper; namespace mirror { @@ -1579,6 +1580,7 @@ class MANAGED Class final : public Object { friend struct art::ClassOffsets; // for verifying offset information friend class Object; // For VisitReferences friend class linker::ImageWriter; // For SetStatusInternal + friend class art::RuntimeImageHelper; // For SetStatusInternal DISALLOW_IMPLICIT_CONSTRUCTORS(Class); }; -- cgit v1.2.3-59-g8ed1b