This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: memory leaks and java ...
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: erik dot poupaert at chello dot be
- Cc: java at gcc dot gnu dot org
- Date: Sun, 23 Mar 2003 14:40:59 +1100 (EST)
- Subject: RE: memory leaks and java ...
From: "Erik Poupaert" <erik dot poupaert at chello dot be>
To: "GCJ Java" <java at gcc dot gnu dot org>
Date: Fri, 21 Mar 2003 23:33:24 +0100
Subject: memory leaks and java ...
--------------------------------------------------------------------------------
> I may also have fallen victim to the myth that automatic garbage collection
> prevents memory leaks ... If you google on the subject, the problem seems to
> be widespread. Are there any particular methods or settings in libgcj that
> can be of use to prevent a server application from consuming all memory?
> I've already added System.gc() here and there, but I doubt it is such an
> effective strategy. By the way, the minGW thread creation seems to leak 4
> bytes per thread created. Does anybody know anything about this?
Look at the comments in gcc/gthr-win32.h.
Then at __mingwthr_key_dtor() in java/win32.cc.
I could never figure out the reason for this "fake-out"
Danny
http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.