parent
ea43f3ea80
commit
4867dba175
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ size_t get_stack_size(int main) {
|
||||||
if (getrlimit(RLIMIT_STACK, &curr) != 0) {
|
if (getrlimit(RLIMIT_STACK, &curr) != 0) {
|
||||||
throw_get_stack_size_failed();
|
throw_get_stack_size_failed();
|
||||||
}
|
}
|
||||||
return curr.rlim_max;
|
return curr.rlim_cur;
|
||||||
} else {
|
} else {
|
||||||
#if defined(LEAN_MULTI_THREAD)
|
#if defined(LEAN_MULTI_THREAD)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue