commons icon indicating copy to clipboard operation
commons copied to clipboard

Could ObjectSizeCalculator.java supported in other JVMs besides HotSpot-JVM?

Open leesf opened this issue 6 years ago • 3 comments

Now ObjectSizeCalculator.java could not work in other JVMs, such as IBM JVM, see here, are there any solutions or sugguestions to implement a new one in other JVMs? Thanks

leesf avatar Sep 09 '19 08:09 leesf

For the IBM JVM specifically, watch out for packed objects, which remove object headers entirely for some objects. Likely complicates the memory model a bit.

https://www.ibm.com/support/knowledgecenter/SSYKE2_7.1.0/com.ibm.java.lnx.71.doc/user/packed_developing.html

DavisBroda avatar Sep 09 '19 15:09 DavisBroda

PackedObject support was a tech preview feature that has been removed from the JVM. No need to worry about it as it's never been supported.

DanHeidinga avatar Sep 13 '19 13:09 DanHeidinga

Wondering if its easy to extend support for IBM JVM

vinothchandar avatar Sep 18 '19 23:09 vinothchandar