memory leaks and java ...

Danny Smith
Sun Mar 23 03:41:00 GMT 2003

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/

I could never figure out the reason for this "fake-out"

Danny - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.

More information about the Java mailing list