[Facades] Use the Open.snk key for the System.ValueTuple facade (#4173)
[mono-project.git] / mono / mini / TestHelpers.cs
blob01ed13532a10f65d0289c64e66cee1b94d5214da
1 using System;
2 using System.Threading;
4 namespace MonoTests.Helpers {
6 public static class FinalizerHelpers {
7 private static IntPtr aptr;
9 private static unsafe void NoPinActionHelper (int depth, Action act)
11 // Avoid tail calls
12 int* values = stackalloc int [20];
13 aptr = new IntPtr (values);
15 if (depth <= 0)
16 act ();
17 else
18 NoPinActionHelper (depth - 1, act);
21 public static void PerformNoPinAction (Action act)
23 Thread thr = new Thread (() => NoPinActionHelper (1024, act));
24 thr.Start ();
25 thr.Join ();