[Pharo-project] Bug in #pointsTo: ?

Levente Uzonyi leves at elte.hu
Sat Jan 7 18:20:30 EST 2012


On Sat, 7 Jan 2012, Mariano Martinez Peck wrote:

> On Sat, Jan 7, 2012 at 4:04 PM, Levente Uzonyi <leves at elte.hu> wrote:
>
>> On Fri, 6 Jan 2012, Mariano Martinez Peck wrote:
>>
>>
>>>>   Thanks Levente. However, #pointersToExcept:  does a GC at the
>>>>>>
>>>>> beginning...
>>>>> so.. am I missing something?
>>>>>
>>>>>
>>>> Yes, at the beginning The MethodContexts are created after that GC.
>>>>
>>>>
>>>>  But those MC shouldn't be excluded by the instVar
>>>  objectsToAlwaysExclude ?
>>>
>>> objectsToAlwaysExclude := {
>>>       results collector.
>>>       thisContext.
>>>       thisContext sender.
>>>       thisContext sender sender.
>>>       objectsToExclude.
>>>   }.
>>>
>>
>> Since #pointsTo: is not a primitive anymore,
>
>
> That's an interesting point. Now I understand this better. Even if I didn't
> know the reasons (now I do), I even tried adding some more senders but
> still they appear :(
> I tried (for example)
>
>    objectsToAlwaysExclude := {
>        results collector.
>        thisContext.
>        thisContext sender.
>        thisContext sender sender.
>        thisContext sender sender sender.
>        thisContext sender sender sender sender.
>        thisContext sender sender sender sender sender.
>        objectsToExclude.
>    }.
>
> What I don't understand is why in Squeak it does work.

Because #pointsTo: is not used in Squeak (yet). As usual I dug deeper than 
I should have, so I'll publish a few changes soon.


Levente

>
> Thanks in advance Levente!
>
>
>
>
>
>> it will create at least one new MethodContext which is not included in
>> that list.
>>
>>
>> Levente
>>
>>
>>>
>>>
>>>
>>>
>>>
>>>> Levente
>>>>
>>>>
>>>>  Thanks again.
>>>>>
>>>>>
>>>>>
>>>>>  Levente
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>  Do you mean what I understand :)? that some tools compiled methods? :)
>>>>>>>
>>>>>>>
>>>>>>>  Stef
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>> Mariano
>>>>>>> http://marianopeck.wordpress.******com <http://marianopeck.wordpress.
>>>>>>> ****
>>>>>>> com <http://marianopeck.wordpress.**com<http://marianopeck.wordpress.com>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>> --
>>>>> Mariano
>>>>> http://marianopeck.wordpress.****com <http://marianopeck.wordpress.**
>>>>> com <http://marianopeck.wordpress.com>>
>>>>>
>>>>>
>>>>
>>>
>>> --
>>> Mariano
>>> http://marianopeck.wordpress.**com <http://marianopeck.wordpress.com>
>>>
>>>
>>
>
>
> -- 
> Mariano
> http://marianopeck.wordpress.com
>




More information about the Pharo-dev mailing list