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]

Reply via email to