HashBits, a lazy way

Stephen Pair stephen at pairhome.net
Mon Jul 14 12:59:21 UTC 2003


I see no problem with it...in fact, I'd like to see an #identityHash: 
method so that you can explicitly set the identity hash (I have that 
method and need it in my custom VM).

- Stephen

Chris Muller wrote:

>I'm so glad the topic of identityHash has come up again among the VM geniuses! 
>I had asked a question about it back in March but got no replies.  There is
>behavior related to becomeForward: where identityHash of the target object is
>mutated.  For Magma, I desperately would like to avoid this behavior because
>otherwise you can't safely store method-selector Symbols in the database unless
>you specify a ReadStrategy to your session that forces them to never be able to
>be proxied.  So you end up having to tell your MagmaSession everywhere in your
>model (e.g., class and variable-name) that references a Symbol.  Cumbersome.
>
>To demonstrate, see how using becomeForward: freezes your image.  To me, this
>is a Squeak bug.
>
>  "Lock up this image."
>  String new becomeForward: #size
>
>Please, if we can't change the existing behavior, can we at least make it
>optional?  For example, have becomeForward: call "self
>becomeFoward:copyHashBits: true" so that I can then use
>"becomeForward:copyHashBits: false"?
>
>There's more detail in my original message:
>
>  http://lists.squeakfoundation.org/pipermail/squeak-dev/2003-March/055383.html
>
>Now that everyone is thinking about this again, would someone please discuss
>this with me?
>
>Very appreciative,
>  Chris
>  
>




More information about the Squeak-dev mailing list