_Jv_HashCode

Per Bothner per@bothner.com
Wed May 10 09:37:00 GMT 2000


Jeff Sturm <jeff.sturm@appnet.com> writes:
> Tom Tromey wrote:
> > 
> > Per> If you change _Jv_Hash so that System.identityHashCode(OBJ) is
> > Per> no longer equals to (jint)(OBJ) then the gdb output syntax
> > Per> probably no longer makes sense.
> > 
> > I'm not too concerned about that. Does anybody rely on the fact that
> > these two are equivalent? Maybe I'm unusual in that it never occurs
> > to me to exploit, or even remember, that information.
>> Sun's javadoc says they are equivalent:

No, Sun's javadoc does *not* say that System.identityHashCode(OBJ)
is the same as (jint)(OBJ). Obviously, for a copying collector,
it can't be.
-- 
	--Per Bothner
per@bothner.com http://www.bothner.com/~per/


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /