agent/src/share/classes/sun/jvm/hotspot/oops/ArrayKlass.java
Print this page
rev 146 : [mq]: mixa.layout.patch
@@ -112,19 +112,11 @@
public long computeModifierFlags() {
return JVM_ACC_ABSTRACT | JVM_ACC_FINAL | JVM_ACC_PUBLIC;
}
public long getArrayHeaderInBytes() {
- return Bits.maskBits(getLayoutHelper() >> LH_HEADER_SIZE_SHIFT, 0xFF);
- }
-
- public int getLog2ElementSize() {
- return Bits.maskBits(getLayoutHelper() >> LH_LOG2_ELEMENT_SIZE_SHIFT, 0xFF);
- }
-
- public int getElementType() {
- return Bits.maskBits(getLayoutHelper() >> LH_ELEMENT_TYPE_SHIFT, 0xFF);
+ return getHeaderSizeInBytes();
}
boolean computeSubtypeOf(Klass k) {
// An array is a subtype of Serializable, Clonable, and Object
Symbol name = k.getName();