agent/src/share/classes/sun/jvm/hotspot/utilities/HeapGXLWriter.java
Print this page
rev 146 : [mq]: mixa.layout.patch
*** 174,183 ****
--- 174,184 ----
writeAttribute("class-name", "string", name.asString());
}
if (isInstanceKlass) {
// write object-size as an attribute
long sizeInBytes = reflectedType.getLayoutHelper();
+ sizeInBytes &= ~Bits.rightNBits(Klass.LH_SIZE_LOW_BITS);
writeAttribute("object-size", "int",
Long.toString(sizeInBytes));
// write static fields of this class.
writeObjectFields(reflectedType);
}