[Pharo-project] CompiledMethod copy
Gabriel Hernán Barbuto
gbarbuto at gmail.com
Mon Nov 29 11:13:15 CET 2010
I've been trying to duplicate a CompiledMethod and finally I've been
able to do it. I've thought about integrating the copy code back into
the image. But the comment in CompiledMethod's veryDeepCopyWith: made
me thought if the change would be correct.
"Return self. I am always shared. Do not record me. Only use this
for blocks. Normally methodDictionaries should not be copied this
On the other hand. CompiledMethod uses Object's copy which makes a
shallow copy of the receiver followed by a postCopy. CompiledMethod
doesn't define any of these methods. So I am not sure if they are
always shared or not as the comment says.
I wonder if it's correct to put this way of copying a CompiledMethod
in copy. What do you think about it?
More information about the Pharo-project