Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.235.mcz==================== Summary ====================
Name: Collections-ul.235
Author: ul
Time: 1 December 2009, 4:39:23 am
UUID: 602bd45e-622a-a248-b87d-12efe1f99c84
Ancestors: Collections-ul.234
Part 2 of IdentitySet hash change.
=============== Diff against Collections-ul.234 ===============
Item was changed:
Item was changed:
----- Method: IdentitySet>>scanFor: (in category 'private') -----
scanFor: anObject
"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject. Answer the index of that slot or raise an error if no slot is found. This method will be overridden in various subclasses that have different interpretations for matching elements."
| index start |
- CollectionRehashingUtility quickRehashBecause: #identitySetScanForChanged.
index := start := anObject scaledIdentityHash \\ array size + 1.
[
| element |
((element := array at: index) == nil or: [ element == anObject ])
ifTrue: [ ^index ].
(index := index \\ array size + 1) = start ] whileFalse.
self errorNoFreeSpace!