Question: pointer to klass

Andrew Kondratovich andrew.kondratovich at gmail.com
Fri Mar 9 13:55:01 PST 2012


Hello.

I'm working on object serialization through Unsafe API.
Every java object in memory is header + field values. Header contains
pointer to klass
(http://hg.openjdk.java.net/jdk7/jdk7/hotspot/file/d61c7c22b25c/src/share/vm/oops/klass.hpp).
Can this pointer be changed in Runtime by JVM ? I mean, if I read
address to `klass` for some Java Class, does it be the same (the same
adress and klass structure for the same Java Class) in 10 minutes, 3
hours, 2 days... Or can be changed by JIT for example ?

Thanks.
-- 
--
Andrew


More information about the hotspot-runtime-dev mailing list