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
)
12 int* values
= stackalloc int [20];
13 aptr
= new IntPtr (values
);
18 NoPinActionHelper (depth
- 1, act
);
21 public static void PerformNoPinAction (Action act
)
23 Thread thr
= new Thread (() => NoPinActionHelper (1024, act
));