< prev index next > src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/Array.java
Print this page
private static long lengthOffsetInBytes() {
if (lengthOffsetInBytes != 0) {
return lengthOffsetInBytes;
}
- if (VM.getVM().isCompressedKlassPointersEnabled()) {
+ if (VM.getVM().isCompactObjectHeadersEnabled()) {
+ lengthOffsetInBytes = Oop.getHeaderSize();
+ } else if (VM.getVM().isCompressedKlassPointersEnabled()) {
lengthOffsetInBytes = typeSize - VM.getVM().getIntSize();
} else {
lengthOffsetInBytes = typeSize;
}
return lengthOffsetInBytes;
< prev index next >