fix(util/stackinfo): saving max stack size on OSX

see issue #628
This commit is contained in:
Leonardo de Moura 2015-05-27 08:52:39 -07:00
parent ea43f3ea80
commit 4867dba175

View file

@ -40,7 +40,7 @@ size_t get_stack_size(int main) {
if (getrlimit(RLIMIT_STACK, &curr) != 0) {
throw_get_stack_size_failed();
}
return curr.rlim_max;
return curr.rlim_cur;
} else {
#if defined(LEAN_MULTI_THREAD)
{