why does 8-line loop forever program take 12-38MB memory when run?
I have this program: NO classes called in explicitly.
WHY does it take 12MB on 1.3.02, 38MB on 1.4-beta2?
This is NOT sensible.
public class hw {
public static void main( String[] args ) {
int n;
while (true) {
n = 1;
}
}
}
[304 byte] By [
timesb] at [2007-9-26 10:48:11]

> There has also been the suggestion that the beta is a
> debug build, which means it will be bigger than the
> final version.
I agree, you can't test on 'beta' quality software and expect it to run like production quality code. But I do think that Sun is going to be sacrificing memory footprint for speed in the long run. I know that I would if I were them. With the price of memory so low and the potential speed gains.