This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Problem --with-gc=simple.
- To: Antonio Ake <ake at ecn dot purdue dot edu>
- Subject: Re: Problem --with-gc=simple.
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Fri, 27 Jul 2001 13:26:45 +1200
- CC: Jeff Sturm <jsturm at one-point dot com>, java at gcc dot gnu dot org
- References: <Pine.GSO.4.33.0107262004080.24402-100000@min.ecn.purdue.edu>
Antonio Ake wrote:
> I need my target binaries without mmap because I am using a simulator
> which doesn't implement it. I was reading that If i use the option
> --with-gc=simple I can disable the use of mmap in my target binaries. Is
> this true?
No. "--with-gc" only affects what GCC itself uses for its internal garbage
collection.
"--with-java-gc" is the option to control the garbage collector that Java
binaries actually use. There are only two options, "boehm" and "none".
"none" will use malloc() for allocations and you will have no garbage
collection, but this maybe useful during development/debugging.
You probibly want to look in the boehm-gc directory and see if you can make it
use something other than mmap() on your target. Take a look at os-dep.c.
regards
Bryce.