Don't try this at home

German Arduino gsa at softhome.net
Wed Mar 30 10:29:55 UTC 2005


Ian Piumarta wrote:
> wa := WeakArray new: 1.
> Smalltalk garbageCollect.
> obj := Object new.
> wb := WeakArray with: obj.
> wa replaceFrom: 1 to: 1 with: wb startingAt: 1.
> obj := nil.
> Smalltalk garbageCollectMost.
> Transcript show: wa
> 
> 
> 
Wow!!!

Why happens this????

I don't know also garbageCollectMost, seeing at the image says "Reclaims 
recently created garbage (which is usually most of it) fairly quickly", 
This means that work faster than normal garbageCollector? Can explain a 
bit more about it?

Thanks.
gsa.




More information about the Squeak-dev mailing list