status of gcj's boehm collector?
Mark Wielaard
mark@klomp.org
Sat Dec 8 12:19:00 GMT 2001
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
More information about the Java
mailing list