--- old/agent/src/share/classes/sun/jvm/hotspot/oops/Instance.java 2012-10-08 20:35:22.332912923 +0200 +++ new/agent/src/share/classes/sun/jvm/hotspot/oops/Instance.java 2012-10-08 20:35:22.143398923 +0200 @@ -53,7 +53,7 @@ // Returns header size in bytes. public static long getHeaderSize() { - if (VM.getVM().isCompressedHeadersEnabled()) { + if (VM.getVM().isCompressedKlassPointersEnabled()) { return typeSize - VM.getVM().getIntSize(); } else { return typeSize;