about summary refs log tree commit diff
path: root/src/rt/rust_env.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2013-04-26 15:36:19 -0700
committerBrian Anderson <banderson@mozilla.com>2013-04-26 15:39:54 -0700
commit149047e55d8eace3ea9d005905577f17b25c54e2 (patch)
treebfbb6e340da8d530646f2fd4940c22ff14d38614 /src/rt/rust_env.cpp
parent64412eca10399d64d25346d5f8220c1b1f88cd29 (diff)
downloadrust-149047e55d8eace3ea9d005905577f17b25c54e2.tar.gz
rust-149047e55d8eace3ea9d005905577f17b25c54e2.zip
rt: Set the stack depth limit to 1GB. Abort on error.
People hit the recursion depth limit too often, it's not possible
to unwind reliably from out-of-stack.

Issues #3555, #3695
Diffstat (limited to 'src/rt/rust_env.cpp')
-rw-r--r--src/rt/rust_env.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_env.cpp b/src/rt/rust_env.cpp
index cade5f1ed2c..041b4efac52 100644
--- a/src/rt/rust_env.cpp
+++ b/src/rt/rust_env.cpp
@@ -97,7 +97,7 @@ get_max_stk_size() {
         return strtol(maxsz, NULL, 0);
     }
     else {
-        return 1024*1024*8;
+        return 1024*1024*1024;
     }
 }