[Bug java/28979] GCJ errors out when compiling .class files produced by Scala 2.1.8
vnasardinov at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 9 01:05:00 GMT 2006
------- Comment #5 from vnasardinov at gmail dot com 2006-09-09 01:05 -------
PR 28892 reminded me that I had forgotten to mention one thing. The
attached program (attachment 12208) runs fine under gij.
To be more precise, it does more or less the same thing it does under
Sun's JDK. Under Sun:
| $ time java \
| -classpath /usr/local/scala/share/scala/lib/scala-library.jar:hamming.jar
\
| hamming
| The first 20 numbers:
| 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36
|
| The 100th number (counting from 0): 1600
|
| The 1000th:
| Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
|
| real 0m9.922s
| user 0m6.532s
| sys 0m2.780s
Under gij:
| $ gij \
| --classpath /usr/local/scala/share/scala/lib/scala-library.jar:hamming.jar
\
| hamming
| The first 20 numbers:
| 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, 16, 18, 20, 24, 25, 27, 30, 32, 36
|
| The 100th number (counting from 0): 1600
|
| The 1000th:
| Killed
Under Sun, it causes an OOM when trying to compute the 1000th Hamming
number. Under gij, it starts paging like there is no tomorrow, but
keeps on going and hoses up my machine pretty quickly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28979
More information about the Java-prs
mailing list