Stuart Ballard <[EMAIL PROTECTED]> writes:
> (Added classpath list to CCs. This came from a thread on
> netscape.public.mozilla.java about the added storage required in every
> object for System.identityHashCode()).
I don't know much about the specific context of your question, but
assuming that a copying garbage collector is not being used, it's
easiest to just return the address of the object (possibly truncated
if your word size is > 32 bits).
This is what Sun does. Of course, since JDK 1.2 has a generational
collector, it's quite possible that they're now doing something else.
System.identityHashCode() should be fast.
--
Paul Fisher * [EMAIL PROTECTED]