Update the layout for Class.class.
We now have 3 static integer fields representing bitmasks
for the modifiers (SYNTHETIC, ENUM, ANNOTATION) etc.
Change-Id: Ie26b932c285626c064a3c7f4ae773c8c386005d6
diff --git a/runtime/mirror/class.h b/runtime/mirror/class.h
index 6c1e93e..d3eb615 100644
--- a/runtime/mirror/class.h
+++ b/runtime/mirror/class.h
@@ -504,7 +504,7 @@
static uint32_t ClassClassSize() {
// The number of vtable entries in java.lang.Class.
uint32_t vtable_entries = Object::kVTableLength + 69;
- return ComputeClassSize(true, vtable_entries, 0, 1, 0);
+ return ComputeClassSize(true, vtable_entries, 3, 1, 0);
}
// The size of a java.lang.Class representing a primitive such as int.class.
@@ -1068,6 +1068,8 @@
void CheckObjectAlloc() SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
+ HeapReference<Object> annotation_type_;
+
// defining class loader, or NULL for the "bootstrap" system loader
HeapReference<ClassLoader> class_loader_;