gcj trunk - memory issues
Hanno Meyer-Thurow
h.mth@web.de
Sat Dec 8 18:40:00 GMT 2007
Hi all!
First, I want to thank you developers for your work on gcj. With recent
versions I can optimize gcj jar to native with '-O2' again! That
optimization eats less memory than '-O1' and '-O0' here on x86_64.
Second, gij runtime and 'gcj -C' utilize both cores of my Core2Duo
completely. gij also eats all my memory and is unusable. However,
the more interesting issue is with 'gcj -C'.
That issue is seen with ecj-3.4M2.
(http://download.eclipse.org/eclipse/downloads/drops/S-3.4M2-200709210919/download.php?dropFile=ecjsrc-3.4M2.zip)
Unpack the zip-file and compile org/eclipse/jdt/internal/compiler/env/AccessRule.java
# /usr/lib/gcj-4.3.0_alpha20071207/bin/gcj -C -w -g0 --encoding=ISO-8859-1 org/eclipse/jdt/internal/compiler/env/AccessRule.java
Now, all the memory gets eaten by that process. Ctrl-C kills it.
Again, compile it and it succeeds quite fast.
Why does it not eat the memory now?
To complete the scene:
# LC_ALL=C /usr/lib/gcj-4.3.0_alpha20071207/bin/gcj -v
Using built-in specs.
Reading specs from /usr/lib64/gcj-4.3.0_alpha20071207/bin/../lib64/gcc/x86_64-unknown-linux-gnu/4.3.0-alpha20071207/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/data/tmp/portage/dev-java/gcj-4.3.0_alpha20071207/work/gcc-4.3-20071207/configure --prefix=/usr/lib/gcj-4.3.0_alpha20071207 --libdir=/usr/lib/gcj-4.3.0_alpha20071207/lib64 --libexecdir=/usr/lib/gcj-4.3.0_alpha20071207/lib64 --with-gxx-include-dir=/usr/lib/gcj-4.3.0_alpha20071207/include/c++ --enable-languages=c,c++,java --enable-ssp --enable-libstdcxx-allocator=new --disable-static --disable-altivec --disable-gtktest --disable-glibtest --disable-multilib --disable-maintainer-mode --disable-libada --disable-libarttest --disable-libjava-multilib --disable-libmudflap --disable-libssp --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --enable-secureplt --enable-nls --without-included-gettext --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-java-home=/usr/lib/gcj-4.3.0_alpha20071207/jre --enable-java-awt=gtk --enable-plugin --disable-gconf-peer --with-ecj-jar=/usr/share/eclipse-ecj-3.
4/lib/ecj.jar --enable-java-maintainer-mode
Thread model: posix
gcc version 4.3.0-alpha20071207 (experimental) (GCC)
Regards,
Hanno
More information about the Java
mailing list