When will object change its native memory address?

Crazy Java crazyjavahacking at gmail.com
Mon Apr 23 06:19:46 PDT 2012


Hi,


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.

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.


Thanks,
Martin Skurla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20120423/65695fef/attachment.html 


More information about the hotspot-runtime-dev mailing list