At 18:13 31/08/2010, Lukas Renggli wrote:
Keeping the relationship is intentional to be able to remove and
reinstall the tree somewhere else. I think the parent link is also
required to be able to restore a deleted page.
Well noted; thanks for the precisions!
So why do you think the parent should be nilled?
It seems that the memory space is never released, because even when later
the *max history* is reached in PRHistoryPersistency, #do: just removes from
its history collection the context that points to the "removed" (hidden?)
structure. So, if I understand well, the structure will not be garbage
collected due to the circular relationship between the parent and its
children?
If you flush the PRHistoryPersistency the references should go. Unless
they are still referenced somewhere else (e.g. sessions).
I don't think that there are any Smalltalk VMs left that do not
collect circular references.
Lukas
--
Lukas Renggli