Re: [Pharo-project] Another fixes to finalization (was Re: [update 1.2] #12161 - #12172)
Oct. 2, 2010
5:14 p.m.
On Oct 2, 2010, at 7:01 PM, Igor Stasenko wrote:
On 2 October 2010 19:47, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Hi igor
do you understand why the previous definition was
cachedDefinitions Definitions ifNil: [Definitions := WeakIdentityKeyDictionary new. WeakArray addWeakDependent: Definitions]. ^ Definitions
i don't. :)
It just a way to free memory as fast as possible. But its really not worth spending so much CPU in order to save few bytes of memory.
:) I looked a bit at the code and it is used just so that MCDefinition flush them if they are not already GCed. So I understand. Stef
5781
Age (days ago)
5781
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stéphane Ducasse