[squeak-dev] MC scories in Object's DependentsFields

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon Jan 21 22:08:28 UTC 2013


+1 I had the same questions coming after a quick browse few hours ago...

I have another one: why doesn't MCTool inherits from Model?

2013/1/21 H. Hirzel <hannes.hirzel at gmail.com>:
> And as we are at it
>
>     http://bugs.squeak.org/view.php?id=7560
>
> Monticello-Base contains the three classes
>
> MCDefinition
> MCPackage
> MCSnapshots
>
> All class comments are empty.
> What is the relationship between MCPackage and PackageInfo.
>
> What does
>    MCDefinition clearInstances.
> do?
>
> Why can this be done safely? What is the impact of doing this?
>
> --Hannes
>
>
> On 1/21/13, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
>> Trying to chasePointers of MCDefinition allSubInstances, I saw several
>> instances of MCPatchBrowser, MCVersionInspector, ...
>> Though no such window is opened in my World, what's up?
>>
>> If I chase pointers of one of these ghost MCPatchBrowser keys, I see
>> nothing but the opened inspectors and ObjectDependentsFields...
>>
>> I guess this must be exactly the same bug as
>> http://bugs.squeak.org/view.php?id=7119 (see my own comments).
>> The key of DependentsFields are weak, so they should be reclaimed.
>> But what if the value points somehow to the key (no matter how deep)?
>> Well, the key will never be reclaimed then.
>>
>> I don't feel comfortable with these dependencies... It's a nest of
>> problems.
>> In MVC, the dependents were maintained in model, so a cycle would be
>> garbageCollected more easily...
>>
>> Nicolas
>>
>>
>


More information about the Squeak-dev mailing list