in reply to Re^2: Circular reference testing.
in thread Circular reference testing.

You are of course not interesting in all the memory locations used by perl, just the SVs (AVs, HVs, etc), because that's where the reference counting is, and if they get cleaned up, they take away what's behind them as well.

Is it possible to write a piece of XS code that gives you the memory pools used for the SVs? You could then use a bitvector per SV memory pool.

Replies are listed 'Best First'.
Re^4: Circular reference testing.
by BrowserUk (Patriarch) on Mar 09, 2005 at 17:33 UTC

    Indeed. It's just the headers that I need to consider.

    You could then use a bitvector per SV memory pool.

    That would make sense for an internal implementation, but it's way beyond my needs.


    Examine what is said, not who speaks.
    Silence betokens consent.
    Love the truth but pardon error.