From: Zoltan Varga Date: Wed, 31 Jul 2013 02:07:39 +0000 (+0200) Subject: Avoid tail calls which breaks the test in finalizer-exception.cs. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=c4ced34e1cdc5f394ab52dd55e4c5771782cd3e4;p=mono.git Avoid tail calls which breaks the test in finalizer-exception.cs. --- diff --git a/mono/tests/finalizer-exception.cs b/mono/tests/finalizer-exception.cs index 1496dc54b47..f11a1dcdeff 100644 --- a/mono/tests/finalizer-exception.cs +++ b/mono/tests/finalizer-exception.cs @@ -10,7 +10,9 @@ public class FinalizerException { * We allocate the exception object deep down the stack so * that it doesn't get pinned. */ - public static void MakeException (int depth) { + public static unsafe void MakeException (int depth) { + // Avoid tail calls + int* values = stackalloc int [20]; if (depth <= 0) { new FinalizerException (); return; @@ -24,7 +26,7 @@ public class FinalizerException { Environment.Exit (0); }; - MakeException (100); + MakeException (1024); GC.Collect (); GC.WaitForPendingFinalizers ();