private static int Main(string[] args) { Console.WriteLine("this test is designed to hang if jit cse doesnt honor volatile"); if (TestCSE.Test()) { return(100); } return(1); }
public static bool Test() { TestCSE o = new TestCSE(); Thread t = new Thread(new ThreadStart(o.Flip)); t.Start(); bool ans = o.TestOp(); s_timeUp = true; t.Join(); return(ans); }
public static bool Test() { TestCSE o = new TestCSE(); Thread t = new Thread(new ThreadStart(o.Flip)); t.Start(); bool ans = o.TestOp(); s_timeUp = true; t.Join(); return ans; }