Dear all,
I'm wondering why sun.misc.Unsafe class allow us getting address of an
object. I'm assuming that address will be changed by GC so it's really
UNSAFE to use that address in any situation.
Is there any useful usage of this object address from using UnSafe
class?
Thanks a lot!
James Gan
Roedy Green - 28 Jan 2008 02:10 GMT
>Is there any useful usage of this object address from using UnSafe
>class?
I think serialisation uses it. It might be useful in debugging.

Signature
Roedy Green, Canadian Mind Products
The Java Glossary, http://mindprod.com