diff options
author | Jo Shields <directhex@apebox.org> | 2014-02-19 22:12:43 +0000 |
---|---|---|
committer | Jo Shields <directhex@apebox.org> | 2014-02-19 22:12:43 +0000 |
commit | 9972bf87b4f27d9c8f358ef8414ac1ab957a2f0f (patch) | |
tree | 5bb230c1d698659115f918e243c1d4b0aa4c7f51 /mono/tests/finalizer-exception.cs | |
parent | d0a215f5626219ff7927f576588a777e5331c7be (diff) | |
download | mono-upstream/3.2.8+dfsg.tar.gz |
Imported Upstream version 3.2.8+dfsgupstream/3.2.8+dfsg
Diffstat (limited to 'mono/tests/finalizer-exception.cs')
-rw-r--r-- | mono/tests/finalizer-exception.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mono/tests/finalizer-exception.cs b/mono/tests/finalizer-exception.cs index f11a1dcdef..29489ad494 100644 --- a/mono/tests/finalizer-exception.cs +++ b/mono/tests/finalizer-exception.cs @@ -2,10 +2,13 @@ using System; using System.Threading; public class FinalizerException { + ~FinalizerException () { throw new Exception (); } + static IntPtr aptr; + /* * We allocate the exception object deep down the stack so * that it doesn't get pinned. @@ -13,6 +16,7 @@ public class FinalizerException { public static unsafe void MakeException (int depth) { // Avoid tail calls int* values = stackalloc int [20]; + aptr = new IntPtr (values); if (depth <= 0) { new FinalizerException (); return; |