[squeak-dev] The Trunk: Kernel-ct.1368.mcz

Tobias Pape Das.Linux at gmx.de
Tue Feb 16 18:08:03 UTC 2021



> On 16. Feb 2021, at 18:52, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> 
> Hi All,
> 
>    one thing people may be missing here is that identity hashes are not unique.  Just because two objects have the same identity hash does not imply they are the same object.  In V3 the identityHash field is 11 bits and identity hash’s range from 0 to 2,047. In Spur the identityHash field is 22 bits and identity hash’s range from 1 to 4,194,303. With the 64-bit system one can easily create 4 million instances of some class and in doing so create two distinct objects with the same identityHash.  Including the identityHash in basic print strings, at least for me, carries a false implication that the identityHash uniquely identifies an object.  It does not.

It's merely about having a few of them processes and having a quick glance on them and discerning them without much effort.
The code by Christoph provides that and helps.
Let's keep it that way.

-t


More information about the Squeak-dev mailing list