garbage collection take too much time to execute....

- - decuplo@yahoo.com
Wed Jun 18 13:34:00 GMT 2008


I agree that 3.4.5 is old but it is the "current release" of mingw,
also cygwin is using 3.4.5 is its "stable" releases....
As said before I'm not familiary with gcj and mingw and I'd like to
use for now (at least to understand the limitation and boundary of gcj and swt) stable or official releases.

May I ask if someone could compile and run my simple snippet in order to see if in the latest release is present the same problem?
This is the command to compile:

gcj --classpath="org.eclipse.swt.win32.win32.x86_3.3.3.v3349.jar" -I. -c -o snippet.o snippet.java

and after:

gcj -o  snippet.exe  --static -mwindows --main=snippet ./snippet.o -L. -lswt


I'm  trying to donwload the alfa release of mingw it contains gcj release 4.3.0 may be tomorrow I'll success to compile...


Thanks you a lot for any support and hits..
x10


--- On Wed, 6/18/08, Andrew Haley wrote:


> Subject: Re: garbage collection take too much time to execute....


> Date: Wednesday, June 18, 2008, 12:36 PM
> - - wrote:
> > Hi,
> > I found a strange behaviour on code generated by gcj
> when compare its output with code generated by eclipse.
> > 
> > Mainly the code generated by gcj  take too much time
> to  perform a memory  garbage collection (about 5 seconds)
> instead of only 15 milliseconds of byte code generated by
> eclipse.
> > 
> > The problem seems to happens when there are canvas and
> transform operations. I attach a simple snippet code that
> write a vertical text on canvas in order to reproduce the
> behaviour.
> > 
> > The gcj compiler I use is:
> > $ gcj --version
> > gcj.exe (GCC) 3.4.5 (mingw-vista special r3)
> > Copyright (C) 2004 Free Software Foundation, Inc.
> > This is free software; see the source for copying
> conditions.  There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR
> A PARTICULAR PURPOSE.
> >  
> > with the swt version 3349: 
> "swt-gdip-win32-3349.dll"  and 
> "swt-win32-3349.dll"
> >  
> > I'm new of this discussion list, hoping not annoy
> you. It is a trouble or it is just a mistake on usage of
> transform?
> > thanks you,
> 
> I addition to what Hans said, I have to tell you that gcj
> 3.4.x is so old
> that it's very unlikely that anyone will want to fix
> any problems.
> 
> Andrew.


      



More information about the Java mailing list