Hi, Am I right in thinking this is the same issue? It appears to loop
forever.
...Stan
SystemNavigation obsoleteBehaviors
"SystemNavigation default obsoleteBehaviors inspect"
"Find all obsolete behaviors including meta classes"
| obs |
obs := OrderedCollection new.
Smalltalk garbageCollect.
self
allObjectsDo: [:cl | (cl isBehavior
and: [cl isObsolete])
ifTrue: [obs add: cl]].
^ obs asArray
Marcus Denker-2 wrote:
>
>
> On 05.08.2009, at 11:30, Stéphane Ducasse wrote:
>
>> Hi guys
>>
>> MethodContext allInstances size seems to loop forever or even to
>> crash my VM.
>
> This might be because new instances are created while executing the
> expression.
>
> Normally contexts are recycled. But the list of contexts available for
> recycling in the vm is flushed (gc) or can just have none to recycle
> anymore.
>
> Therefore, while executing code new instance of MethodContext are
> created,
> leading to an endless loop for "allInstances".
>
> That´s my theory..
>
>
> Marcus
>
>
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
--
View this message in context:
http://n2.nabble.com/-BUG--MethodContext-allInstances-size-tp3392811p3404015.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project