Hello:
We have just uncovered a really horrible problem with GCJ 3.3, on
multiple platforms (x86 linux, arm-wince-pe, ARM/linux).
Instances of Throwable, and classes derived from it are leaked by
garbage collection, in the following way. The GC heap size is
unaffected, but the process virtual size/RSS reflects the leakage. Here
is a sample program that demonstrates the problem:
class Catcher {
public static void main(String [] args) {
System.out.println("now in main");
while (true) {
Exception foo = new Exception();
}
}
}