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]

Re: Reducing memory consumption


In article <28169.953559657@upchuck> you write:
>
>  In message <200003192042.VAA00809@loewis.home.cs.tu-berlin.de>you write:
>  > I can see the problem with the overhead of having page-aligned memory
>  > on systems which don't really support that. However, I don't see how
>  > garbage collection would increase memory consumption apart from that.
>Very simple.  We've created a partition in our memory space.  ie, there
>is the stuff that is managed by GC and the stuff that isn't.  There
>may be megabytes of contiguous memory held by GC waiting for reclaimation
>but an xmalloc call can still fail.

Call me stupid, but...
how hard is it to trigger a gc if malloc fails ?

Or is there a kind of `critical section' issue with the gc, that states that
you can't call it everywhere you can call malloc ?

Or is the gc-reclaimed memory not really reclaimed for anything except gc, 
and in particular not usable for a malloc ?

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