author | Stacy Yeh <stacy.yeh@oracle.com> |
Tue, 19 Jul 2016 14:15:23 -0700 | |
changeset 6431 | e4667e7df088 |
permissions | -rw-r--r-- |
For sparc. Our function frame is very big, so on sparc we need more stack size. Potentially send upstream. diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -1491,6 +1491,9 @@ static void SetNativeStackQuotaAndLimit(JSRuntime* rt, StackKind kind, size_t stackSize) { +#ifdef JS_CPU_SPARC + stackSize = stackSize * 8 < 7 * 1024 * 1024 ? stackSize * 8 : 7 * 1024 * 1024; +#endif rt->nativeStackQuota[kind] = stackSize; #if JS_STACK_GROWTH_DIRECTION > 0