This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch for Review: Build all libjava .class files at once (UpdatedAgain)
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, <gnustuff at thisiscool dot com>, GCJ Patches <java-patches at gcc dot gnu dot org>
- Date: Mon, 15 Sep 2003 20:09:36 -0400 (EDT)
- Subject: Re: Patch for Review: Build all libjava .class files at once (UpdatedAgain)
On Mon, 15 Sep 2003, Andrew Haley wrote:
> I note that this causes the compiler to expand to a resident set size
> of some 266 Mbytes. On some machines this could cause sever
> thrashing, and maybe libgcj can't be built at all.
Good point. My guess is that the swapping may not be too horrible given
that GC never happens when building .class files.
Hmm... let's experiment! My laptop has 256MB of RAM. I can easily yank
out 128MB, so here's timings for building all classes from sources:
256MB: 3m2s
128MB: 5m41s
Time nearly doubled, and the machine thrashed a bit. (Guess gcc's
locality isn't so great after all with or without GC. Maybe Dan Berlin's
zone allocator will help.)
So what do you think? Is this tolerable? I don't have a 64MB machine
around to try, but as Tom says, with 64MB you'll run into other problems
anyway.
Jeff