Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.330.mcz==================== Summary ====================
Name: Collections-ul.330
Author: ul
Time: 10 March 2010, 5:35:53.989 am
UUID: 5295389d-7e52-504c-acfe-2d918679f006
Ancestors: Collections-klc.329
- use WeakIdentityKeyDictionary instead of WeakKeyDictionary in WeakRegistry
- added a postscript to update existing WeakRegistries
=============== Diff against Collections-klc.329 ===============
Item was changed:
----- Method: WeakRegistry>>initialize: (in category 'initialize') -----
initialize: n
+
+ valueDictionary := WeakIdentityKeyDictionary new: n.
- valueDictionary := WeakKeyDictionary new: n.
accessLock := Semaphore forMutualExclusion.
self installFinalizer.!
Item was changed:
+ (PackageInfo named: 'Collections') postscript: 'WeakRegistry allInstancesDo: [ :each |
+ each protected: [
+ | newDictionary |
+ newDictionary := WeakIdentityKeyDictionary new.
+ (each instVarNamed: #valueDictionary) keysAndValuesDo: [ :key :value |
+ newDictionary at: key put: value ].
+ newDictionary finalizer: #finalize.
+ each instVarNamed: #valueDictionary put: newDictionary ] ]'!
- (PackageInfo named: 'Collections') postscript: ''!