[squeak-dev] The Trunk: Collections-ul.233.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Dec 1 05:00:55 UTC 2009


Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.233.mcz

==================== Summary ====================

Name: Collections-ul.233
Author: ul
Time: 1 December 2009, 4:36:35 am
UUID: b5e9b392-4055-0e45-8a29-1eff47faa883
Ancestors: Collections-ul.232

Part 2 of WeakIdentityKeyDictionary hash change.

=============== Diff against Collections-ul.232 ===============

Item was changed:
  ----- Method: WeakIdentityKeyDictionary>>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: #weakIdentityKeyDictionaryScanForChanged.
  	index := start := anObject scaledIdentityHash \\ array size + 1.
  	[ 
  		| element |
  		((element := array at: index) == nil or: [ element key == anObject ])
  			ifTrue: [ ^index ].
  		(index := index \\ array size + 1) = start ] whileFalse.
  	self errorNoFreeSpace!

Item was changed:




More information about the Squeak-dev mailing list