This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GC use within GCC
- To: Tom Lord <lord at regexps dot com>
- Subject: Re: GC use within GCC
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 30 Jul 2001 20:04:44 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200107310052.RAA28151@morrowfield.home>
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