[Python-Dev] id() on Win64 (was: CVS: python/dist/src/Python bltinmodule.c,2.162,2.163)

Tim Peters tpeters@beopen.com
Thu, 29 Jun 2000 12:23:54 -0400


[posted & mailed]

[Tim]
> id() has to return a unique value.

[Finn Bock]
> This property of id() does not hold in JPython. When used with hotspot,
> id() is not unique.

So it's possible there for one of these be true:

    id(x) == id(y) and x is not y
    id(x) != id(x)

?  Then that's a bug in JPython or hotspot.  Know which?  Filed a bug
report?

In CPython, we just use the address of an object's header, and as CPython
never moves an object's header in memory, the good stuff follows trivially.
Don't know what JPython tries to do, but it's bound to be harder there (as
Java can move memory around).