In java 8 , we had the below function to get the size of the object during runtime
"jdk.nashorn.internal.ir.debug.ObjectSizeCalculator"
ObjectSizeCalculator.getObjectSize(<Object>)
In Java 21, we dont have this method. Is there any alternative ?
Tried to find object size during runtime
0