_Jv_HashCode

Jeff Sturm jeff.sturm@appnet.com
Wed May 10 09:42:00 GMT 2000


Per Bothner wrote:
> > Sun's javadoc says they are equivalent:
> 
> No, Sun's javadoc does *not* say that System.identityHashCode(OBJ)
> is the same as (jint)(OBJ).

Ugh.  I misread the message.  You're right, of course.

> Obviously, for a copying collector, it can't be.

Right.  The MS VM for example does not use addresses for
identityhashCode().  (And it runs a copying collector.)

-- 
Jeff Sturm
jeff.sturm@appnet.com


More information about the Java mailing list