[Pharo-project] Problem with CompiledMethodTrailer

Mariano Martinez Peck marianopeck at gmail.com
Tue May 10 20:20:39 CEST 2011


On Tue, May 10, 2011 at 1:44 PM, Igor Stasenko <siguctua at gmail.com> wrote:

> The fix in
> http://code.google.com/p/pharo/issues/detail?id=4186
>
> now one thing left:
>  we need to get rid of hanging methods with corrupted trailers.
>
> And we do it like this:
>
> (CompiledMethod allInstances select: [:m |
>        m isInstalled not and: [ m trailer kind = #VarLengthSourcePointer ]]
> ) do: [:each |
>        each at: each size put: 0 ]
>
> This will replace a corrupted trailer with empty one.
>
>

Excellent!!!  that worked :)  Thanks Igor.
Now...it is supposed that when this issue fix is integrated the new
generated image should now have these weird CMs so that script should not be
necessary.
I will test it when such image is build by hudson :)



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gforge.inria.fr/pipermail/pharo-project/attachments/20110510/9457369c/attachment.htm>


More information about the Pharo-project mailing list