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

Andrew Haley
Sat Aug 16 13:29:00 GMT 2003

Øyvind Harboe writes:
 > I'm was trying to track down a different bug, when I ran across
 > this behaviour. Don't know what to make of it.
 > The program below hangs in Runtime.getRuntime.gc().

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.


More information about the Java mailing list