This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: status of gcj's boehm collector?


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


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