|
Hi
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.
veryDeepCopyWith: deepCopier
"Return self. I am always shared. Do not record me. Only use this
for blocks. Normally methodDictionaries should not be copied this
way."
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?
Bests
Gabriel
|