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: 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.


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