Crispin Miller <[EMAIL PROTECTED]> writes: > The same thing happens with a Thread.yield(); > (in pre1 and pre2) > > I've tried moving the yield statement around to no avail... > > import java.util.*; > public class SBTest { > public SBTest() { > int i = 0; > while(true) { > System.out.println(i + " "); > i++; > System.out.flush(); > System.gc(); > Thread.yield(); > } > } > > public static void main(String args[]) { > SBTest t = new SBTest(); > } > } Ehh.. I didn't actually look at the code before :) Tell me what is it that you are trying to gc? If you're patient you'll get an int overflow as far as I can see. -- Jan-Henrik Haukeland ---------------------------------------------------------------------- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
- java.lang.OutOfMemoryError Luigi Giuri
- Re: java.lang.OutOfMemoryError Jan-Henrik Haukeland
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Luigi Giuri
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Matthias Carlsson
- Re: java.lang.OutOfMemoryError Crispin Miller
- Re: java.lang.OutOfMemoryError Jan-Henrik Haukeland
- Re: java.lang.OutOfMemoryError Crispin Miller
- Re: java.lang.OutOfMemoryError Jan-Henrik Haukeland
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Crispin Miller
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Larry Gates
- Re: java.lang.OutOfMemoryError Gregory Steuck
- Re: java.lang.OutOfMemoryError Nathan Ehresman
- Re: java.lang.OutOfMemoryError Dallas Hockley
- Re: java.lang.OutOfMemoryError Crispin Miller