[squeak-dev] [BUG][FIX] CompiledMethodTrailer

Igor Stasenko siguctua at gmail.com
Tue May 10 11:24:56 UTC 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.squeakfoundation.org/pipermail/squeak-dev/attachments/20110510/45f53c8e/CompiledMethodTrailer-encodeVarLengthSourcePointer.obj


More information about the Squeak-dev mailing list