about Behavior>>flushCache

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

about Behavior>>flushCache

Gaboto
does anybody know if the the method Behavior>>flushCache flush the whole method cache or just the methods of the receiver class ?


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: about Behavior>>flushCache

Adrian Lienhard
The interpreter purges the whole cache:

flushMethodCache
        "Flush the method cache. The method cache is flushed on every  
programming change and garbage collect."

        1 to: MethodCacheSize do: [ :i | methodCache at: i put: 0 ].
        1 to: AtCacheTotalSize do: [ :i | atCache at: i put: 0 ].

Cheers,
Adrian

On Jun 16, 2009, at 22:32 , Gabriel Brunstein wrote:

> does anybody know if the the method Behavior>>flushCache flush the  
> whole
> method cache or just the methods of the receiver class ?
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project