[Pharo-project] Problem with CompiledMethodTrailer

Mariano Martinez Peck marianopeck at gmail.com
Mon May 9 10:14:03 CEST 2011


On Mon, May 9, 2011 at 10:10 AM, Igor Stasenko <siguctua at gmail.com> wrote:

> On 9 May 2011 10:06, Igor Stasenko <siguctua at gmail.com> wrote:
> > On 9 May 2011 10:03, Henrik Sperre Johansen
> > <henrik.s.johansen at veloxit.no> wrote:
> >> On 09.05.2011 09:36, Mariano Martinez Peck wrote:
> >>
> >> On Mon, May 9, 2011 at 6:14 AM, Igor Stasenko <siguctua at gmail.com>
> wrote:
> >>>
> >>> On 9 May 2011 00:52, Mariano Martinez Peck <marianopeck at gmail.com>
> wrote:
> >>> > Hi guys, Maybe it is too late and I am not seeing something
> obvious...so
> >>> > another look is really appreciated. If I do:
> >>> >
> >>> > (CompiledMethod allInstances select:  [:each | each trailer kind =
> >>> > #VarLengthSourcePointer] ) first
> >>> > ---> (CodeLoader class>>#initialize "a CompiledMethod(311951360)")
> >>> >
> >>> > But then:
> >>> >
> >>> > (CodeLoader class >> #initialize) trailer kind
> >>> > ----> #SourcePointer
> >>> >
> >>> > WHYYY??  why it is answering #SourcePointer instead of
> >>> > #VarLengthSourcePointer  ??
> >>> >
> >>> > grrr how can that be possible???  It happens the same to each of the
> >>> > CompiledMethods I select as #VarLengthSourcePointer.  When I then ask
> >>> > the
> >>> > #kind  they always answer #SourcePointer  instead of
> >>> > #VarLengthSourcePointer
> >>> >
> >>> is it same compiled methods?
> >>> Because it is absolutely normal if they using different source pointer.
> >>>
> >>
> >> I didn't understand your question. Yes, it is exactly the same
> >> CompiledMethod.
> >>
> >> He's asking if they ARE the same
> >>
> >> (CodeLoader class >> #initialize) == (CompiledMethod allInstances
> select:
> >> [:each | each trailer kind = #VarLengthSourcePointer] ) first) ?
> >
> > yeah.. and in my image these are not the same.
> > So, a better question to ask, is why there are multiple instances of
> > same method hanging in image :)
> >
>
> oh.. to be correct.. by saying 'multiple instances of same method' i meant
> that a multiple instances of CompiledMethod , which having same (class
> + selector).
> But since only one can be installed at method dictionary using given
> selector, i wonder what others
> doing in image.
>


Thanks guys. Good catch!  Igor, I am trying with any PharoDev 1.3 from
Hudson:

https://pharo-ic.lille.inria.fr/hudson/view/Pharo/job/Pharo%201.3/

I will try to explore pointers....





>
> >>
> >> Just because the CompiledMethds class and selector matches so its
> >> printstring will be 'SomeClass>>#someSelector', does not necessarily
> mean it
> >> is the one currently installed in the method dictionary.
> >>
> >> Cheers,
> >> Henry
> >>
> >>
> >
> >
> >
> > --
> > Best regards,
> > Igor Stasenko AKA sig.
> >
>
>
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>
>


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


More information about the Pharo-project mailing list