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: GCJ 3.3 crash with string handling reproduceable case


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


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