[Pharo-project] [BUG][FIX] CompiledMethodTrailer

Igor Stasenko siguctua at gmail.com
Tue May 10 07:24:56 EDT 2011


Okay, seems like i found the bug.


(CompiledMethodTrailer new sourcePointer: 0) testEncoding

fails.

And it happens only when you pass 0 as source pointer!!
Such an obscure case!

@squeakers, for the context, check the discussion "Problem with
CompiledMethodTrailer"
in pharo-dev list.

On 10 May 2011 12:47, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
>
>>
>> >
>> > I must be wrong, because the dev image when it is build, it calls all
>> > cleanUp methods for classes, so CompiledMethod class >> cleanUp shuld
>> > have
>> > been called, but if I take the Pharo1.3 result, I can see the source
>> > code
>> > (not decompiled)
>> >
>>
>> But you can't see the source of those methods in browser, because
>> browser works only with installed methods
>> while cleanup touching only non-installed ones.
>
>
> grrrr sorry, I forgot about the #isInstalled ... I went directly to see
> #destroySourcePointer
> heheheh
>
>>
>> >>
>> >> When i do this, my image hangs.
>> >
>> > I have just tried and it crash!!!  Actually, I evaluated CompiledMethod
>> > cleanUp. And just after cmd+b in CompiledMethod (to browse it) -> crash
>> > How it is possilbe it didn't crash while building the dev image?   or
>> > the
>> > first time I browse a class?
>> > maybe this incorrect CM are created by the build process just after the
>> > cleanUp ?
>> >
>> I don't know yet.
>> Maybe there is some test, which breaking them when it runs? Or tests
>> are not run on those images?
>
> I was thinking exactly the same. But no, this image has not run the tests.
> There are other images specially to download from hudson that are those
> after running tests :(
>
>
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>



-- 
Best regards,
Igor Stasenko AKA sig.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CompiledMethodTrailer-encodeVarLengthSourcePointer.st
Type: application/octet-stream
Size: 622 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20110510/45f53c8e/attachment.st>


More information about the Pharo-dev mailing list