summaryrefslogtreecommitdiff
path: root/runtime/mirror/class_flags.h
diff options
context:
space:
mode:
author Victor Chang <vichang@google.com> 2023-03-21 17:00:46 +0000
committer Victor Chang <vichang@google.com> 2023-03-27 08:59:07 +0000
commit4efc53d64dd5a04fcb9203bee756ae462c6da9f9 (patch)
tree2d07b8b73d81664213dec5d36acb58a99be8d171 /runtime/mirror/class_flags.h
parent456ea95d710b05659a87b5f348f523493a7718c6 (diff)
Set Record flag during class linking
It's needed for adding new record-specific behavior in ART. For example, fields are still immutable and un-modifiable via java.lang.reflect.Field#set*() API. See http://b/272698028 Bug: 272698028 Test: atest CtsLibcoreTestCases:RecordTest Change-Id: I6805fc4a8b8966b913eaba9f7c4dfdd1ab5886c4
Diffstat (limited to 'runtime/mirror/class_flags.h')
-rw-r--r--runtime/mirror/class_flags.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/mirror/class_flags.h b/runtime/mirror/class_flags.h
index 139c4cb67a..c85b9e0eee 100644
--- a/runtime/mirror/class_flags.h
+++ b/runtime/mirror/class_flags.h
@@ -56,6 +56,9 @@ static constexpr uint32_t kClassFlagFinalizerReference = 0x00000200;
// Class is the phantom reference class.
static constexpr uint32_t kClassFlagPhantomReference = 0x00000400;
+// Class is a record class. See doc at java.lang.Class#isRecord().
+static constexpr uint32_t kClassFlagRecord = 0x00000800;
+
// Combination of flags to figure out if the class is either the weak/soft/phantom/finalizer
// reference class.
static constexpr uint32_t kClassFlagReference =