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

- - <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Hi All again,
I success to build a new compilation environment!! (I took less time I thought)
With the new gcj the problem not happens!!!.

The new compiler I used is:

$ gcj --version
gcj.exe (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502
Copyright (C) 2008 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.


The snippet's time is about 15 milliseconds now. So the problem is in previous releases but we not know the reason or the patch correcting it.

thanks you a lot for help
x10


--- On Wed, 6/18/08, - - <decuplo> wrote:

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

> Date: Wednesday, June 18, 2008, 3:33 PM
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.