Hi All,
We have three primitives for three different versions of #flushCache: - primitive 89 used by Behavior >> #flushCache - primitive 116 used by CompiledMethod >> #flushCache - primitive 119 used by Symbol >> #flushCache
Based on the comment in CompiledMethod >> #flushCache, and Symbol >> #flushCache, primitive 119 is not used since Squeak 2.3, and Symbol >> #flushCache can safely be removed. But the method is still in the image, and it is being sent whenever a method is removed or added to a class. Is the comment wrong, or the method is really not needed?
Also the last comments in Behavior >> #basicAddSelector:withMethod: and Behavior >> #basicRemoveSelector: suggest that either the method's or the selector's cache should be flushed, but not both, which is actually the case in both methods. The comment in Symbol >> #flushCache suggests the same. So what's the truth? Do we still need primitive 119?
Levente