This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: _Jv_HashCode


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]