This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GC use within GCC


On Jul 30, 2001, Tom Lord <lord@regexps.com> wrote:

> Am I reading the code of GCC correctly?  It appears that, although GCC
> now uses the Boehm collector, it does not perform a conservative scan
> of the C stack.  Is that true?

Well, there are two different garbage collectors in GCC.  One is used
by the compiler itself, and this is not Boehm GC.  It only kicks in
at specific points of the compilation process, in which we know the
stack is not a GC root.  The Boehm GC is used for the Java run-time,
and I believe this one does scan the stack conservatively, but I
haven't looked into the Java run-time for a while.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]