This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: status of gcj's boehm collector?
- From: Mark Wielaard <mark at klomp dot org>
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Cc: 'Adam Megacz' <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- Date: Sat, 8 Dec 2001 21:16:16 +0100
- Subject: Re: status of gcj's boehm collector?
- References: <40700B4C02ABD5119F000090278766443BEDE7@hplex1.hpl.hp.com>
Hi,
On Thu, Dec 06, 2001 at 10:35:19AM -0800, Boehm, Hans wrote:
> My reading of the spec is that System.gc() is intended to
> unconditionally trigger a full GC, which is not what you want. But it is
> what gcj currently does.
The Online API doc indeed seem to suggest it. But my Java Class Libraries,
Second Edition, Volume 1 (ISBN 0-201-31002-3) says for Runtime.gc():
You can give an indication to the system that you want the garbage
collector to run by invoking the gc() method. Doing this, however does
not guarantee that the garbage collector will run immediatly; a call to
gc() acts only as a hint to the system.
Cheers,
Mark
--
Stuff to read:
<http://www.toad.com/gnu/whatswrong.html>
What's Wrong with Copy Protection, by John Gilmore