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: PATCH: new GC implementation


>>>>> "Bernd" == Bernd Schmidt <bernds@cygnus.co.uk> writes:

    >> Finally, the allocator obtains memory by mmap'ing from
    >> /dev/zero.

    Bernd> This doesn't exist on all systems; e.g. HP/UX doesn't
    Bernd> appear to have it.

I believe Alex plans to contribute autoconf support to conditionally
select ggc-mmap instead of gcc-simple.  (The patch he just sent in
doesn't enable ggc-mmap at all, unless you explicitly turn it on.)
The autoconf checks will check that `mmap' exists/works and that
`/dev/zero' exists, I guess.  Someone with an interest can extend
ggc-mmap to deal with other systems; its algorithms should actually
work just fine with valloc/memalign or with the NT way of mapping
memory (I forget the syscall right now).

Basically, those extensions will consist of inserting appropriate
autoconf checks, and then conditionalizing the memory allocation and
deallocation routines in ggc-mmap.c.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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