On Fri, Dec 14, 2001 at 12:20:57PM +1100, Ben Stanley wrote:

> So Paragraphs form a doubly linked list... this is a self-referencing 
> structure, and reference counted pointers don't work there. (The 
> offending data will never be deleted.)

this is true in general, but we explicitly break a chain when we don't
want the paragraph any more. So the actually unused data no longer
forms a cycle, and ref counting is OK.

Think about removing a paragraph from a chain : it starts with a count of 2,
then 1 as prev's pointer is reset, then 0 as next's pointer is reset.

At least I assume that's how we manage the list right now ...

regards
john

-- 
"Of all manifestations of power, restraint impresses the most."
        - Thucydides

Reply via email to