2 using System.Runtime.ConstrainedExecution;
6 static public int count = 0;
10 Console.WriteLine ("p");
19 class Q : CriticalFinalizerObject {
20 static public int count = 0;
21 static public int first_p_count = -1;
22 static public int last_p_count = 0;
25 if (first_p_count < 0)
26 first_p_count = P.count;
27 last_p_count = P.count;
33 static void makeP () {
40 static void callMakeP () {
45 for (int i = 0; i < 100; ++i)
48 GC.WaitForPendingFinalizers ();
49 Console.WriteLine (P.count);
50 Console.WriteLine (Q.count);
51 Console.WriteLine (Q.first_p_count);
52 Console.WriteLine (Q.last_p_count);
55 if (Q.first_p_count < P.count)