[kaffe] Garbage Collection

Matthew Toseland toad@amphibian.dyndns.org
Tue Feb 25 08:26:01 2003


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Using Kaffe CVS, it looks like when I call:
System.gc();
System.runFinalization();
It locks the whole VM for the GC. Is there any way to prevent this?
Sun doesn't do this. Also it seems rather slower than Sun.

What exactly is the Kaffe garbage collection policy? Under Sun VMs, it
would appear that it doesn't even try to GC until a large fraction of
the maximum available memory is used... this is very bad for freenet,
because it has rather burst memory usage - it could use a lot, so users
set the limit high, but most of the time it doesn't use a lot. So we
added a checkpoint called every (configurable time period) to call the
above code. It would seem this is not necessary on Kaffe... but info on
Kaffe (and Sun :) ) garbage collection would be useful.
--=20
Matthew Toseland
toad@amphibian.dyndns.org/amphibian@users.sourceforge.net
Full time freenet hacker.
http://freenetproject.org/
Freenet Distribution Node (temporary) at http://80-192-4-23.cable.ubr09.na.=
blueyonder.co.uk:8889/0GSj~ZckWfI/
ICTHUS.

--/04w6evG8XlLl3ft
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+W5lTmlVGrEH/+qIRAimdAJ4hOAe10S07TqUQ2CF8sglSJwlZvQCgm1J+
prRbtycNt5P65WGEoPpPBRY=
=a8Tw
-----END PGP SIGNATURE-----

--/04w6evG8XlLl3ft--