This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [patch] Move loop structures to gc memory


On May 17, 2007, Mark Mitchell <mark@codesourcery.com> wrote:

>   ggc_register_root (&p->t);

The reason I didn't propose this simpler-to-use idiom, and rather
proposed the GC-root data structure to be allocated by the caller, is
that your simpler construct would likely involve either additional
memory allocations, whose overhead we're trying to avoid, or a more
complex data structure, which also comes with its overheads in terms
of memory and computation.

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


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