Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2008 20:51:55 +0200
From:      Kees Jan Koster <kjkoster@kjkoster.org>
To:        Nicklas Johnson <freebsd@spatula.net>, freebsd-java@freebsd.org
Subject:   The aside (was: Crash when running 1.6.0_03)
Message-ID:  <D1040195-38EE-43DD-A2C0-5CE2DBBA8218@kjkoster.org>
In-Reply-To: <be800d230808150756k55fcc019ga1713362db0a2d9a@mail.gmail.com>
References:  <83eb635f0808150545id908826r81346d5b62989570@mail.gmail.com> <be800d230808150756k55fcc019ga1713362db0a2d9a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dear Nicklas,

> As an aside, it's a really, really bad idea to ever call System.gc()
> directly in a modern JVM.  It's much better to leave it to the JVM  
> to decide
> when to do garbage collection.

Interesting. Could you elaborate on this? What makes doing a manual  
gc() so bad? Any documents on the 'web that talk about this in detail?

--
Kees Jan

http://java-monitor.com/forum/
kjkoster@kjkoster.org
06-51838192

Rule 1 for being in a hole: stop digging.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D1040195-38EE-43DD-A2C0-5CE2DBBA8218>