예제 #1
0
 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);
 }
예제 #2
0
    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);
    }
예제 #3
0
    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;
    }