Runtime.getRuntime().gc() never returns in included example

Øyvind Harboe oyvind.harboe@zylin.com
Sat Aug 16 18:27:00 GMT 2003


> Not when I tried it.  Mind you, this program will run for a
> very long time, given that you're calling System.gc() about 
> 10^9 times.

Yes, you are right. 

I don't really have anything to say to my defense for jumping 
to conclusions, but I "discovered this" in my desperate efforts 
to track down a different crash. Alas, I tricked myself into believing
that the ~100-1000x slowdown I saw, was a hang.

(I'm in way over my depth on the said bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10746)


Øyvind



More information about the Java mailing list