This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ 3.3 crash with string handling reproduceable case
- From: "Ranjit Mathew" <rmathew4lists at hotmail dot com>
- To: "Erik Poupaert" <erik dot poupaert at chello dot be>
- Cc: <java at gcc dot gnu dot org>
- Date: Thu, 27 Feb 2003 10:33:26 +0530
- Subject: Re: GCJ 3.3 crash with string handling reproduceable case
- References: <POEIJGMGPFPGFHAGKFHAEEHJCFAA.erik.poupaert@chello.be>
- Reply-to: "Ranjit Mathew" <rmathew at hotmail dot com>
> I've just deployed a minGW application compiled by 3.3.
>
> Does the problem with garbage collection mean that memory won't be
> recovered, and that the application will starve? I mean, is this something
> that will bring down the application and even the entire OS?
>
> Should I recall the application, and compile with 3.2 instead?
Relax! The GC still works - if you don't believe me, compile and
run this program with Mohan's GCJ 3.3 build and you should see
the messages when the objects are reclaimed by the GC:
------------------------------- 8< --------------------------------
public class TestGC
{
public static void main( String[] args) throws Exception
{
for( int i = 0; i < 1000000; i++)
{
TestGC discardMe = new TestGC( );
}
}
public void finalize( ) throws Throwable
{
System.out.println( "Goodbye cruel world!");
}
}
------------------------------- 8< --------------------------------
Ranjit.