Marko Rauhamaa <ma...@pacujo.net> writes: > Mark H Weaver <m...@netris.org>: > >> Marko Rauhamaa <ma...@pacujo.net> writes: >> >>> l...@gnu.org (Ludovic Courtès): >>> >>>> libgc knows which regions it must scan and mmap’d regions like this >>>> are not among them. >>> >>> Wow, where is that documented? I would have imagined it scanned all >>> writable RAM and CPU registers. >> >> It's documented here: http://www.hboehm.info/gc/gcdescr.html > > Please point out the sentence.
Read the "Mark phase" section. In brief, roots are scanned from the registers, stack(s), and static data region(s). The only other areas scanned are heap areas specifically managed by libgc. No pointer is considered valid unless it points to a libgc-managed heap block. Mark