On Wed, Jun 07, 2006 at 06:57:45PM +0200, Laurynas Biveinis wrote: > As far as I can understand, current GGC-ors do not simply register > them as a additional roots - they walk them all the way down by the > pointers and mark stuff as required during collection. Now, if I add > the roots to Boehm's GC, this traversal and marking will be done > internally by Boehm's GC. The question is, does GCC have any data > structures looking like this: root -> some GC'ed memory -> some > malloc'ed memory -> some GC'ed memory (or similar)? Such cases should > be OK with current GGC schemes,
No, it wouldn't be. The collector would try to mark the malloced memory, and blow up. -- Daniel Jacobowitz CodeSourcery