Hi,<br><br><br>I am working on a project of visualizing the HotSpot Heap (similar to GCSpy). The last thing I need is to be able to determine when any object changes its native memory address. I know this is low level and VM specific, but I need that information for HotSpot case.<br>
<br>I was searching the JLS and JVM spec but I didn't found an answer for my question: When will object change is native memory address? It is clear that as part of GC (especially copying algorithms) that could happen. That's fine. But, are there any other circumstances when an object could change its address? If there are when and why? I assume that HotSpot should not move objects in memory except GC, but I have to be sure because I didn't want to introduce indeterminism in my application.<br>
<br><br>Thanks,<br>Martin Skurla<br>