projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b181fa6
)
Avoid tail calls which breaks the test in finalizer-exception.cs.
author
Zoltan Varga
<vargaz@gmail.com>
Wed, 31 Jul 2013 02:07:39 +0000
(
04:07
+0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Wed, 31 Jul 2013 02:07:39 +0000
(
04:07
+0200)
mono/tests/finalizer-exception.cs
patch
|
blob
|
history
diff --git
a/mono/tests/finalizer-exception.cs
b/mono/tests/finalizer-exception.cs
index 1496dc54b476a8d1e9b3bfe11895500e59a79ea6..f11a1dcdeffd2ce3eb23d16d088a431977b999aa 100644
(file)
--- 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 (10
0
);
+ MakeException (10
24
);
GC.Collect ();
GC.WaitForPendingFinalizers ();