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
This commit is contained in:
Brian Anderson
2013-04-26 15:36:19 -07:00
parent 64412eca10
commit 149047e55d
6 changed files with 3 additions and 86 deletions

View File

@@ -97,7 +97,7 @@ get_max_stk_size() {
return strtol(maxsz, NULL, 0);
}
else {
return 1024*1024*8;
return 1024*1024*1024;
}
}