<div dir="ltr">Thanks for your interpretation. I'm wondering how to get each <span style="font-family:arial,sans-serif;font-size:13px">object's address. </span><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">I know that each object has a hashcode. But it seems that this code has nothing to do with the physical address. I think there is a "object table" in JVM which indicates each object's location. So JVM can calculate the usage in each generation. Maybe I need to hack the JVM, but where to start with?</span></div>
</div>