components/desktop/firefox/patches/firefox-27-stacksize.patch
changeset 5527 611b2d6efdfe
parent 5255 cea0e462549a
child 7309 2655ef11c386
equal deleted inserted replaced
5526:570ac9aab8b2 5527:611b2d6efdfe
       
     1 For sparc. Our function frame is very big, so on sparc we need more stack size.
       
     2 Potentially send upstream. 
       
     3 
       
     4 diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp
       
     5 --- a/js/src/jsapi.cpp
       
     6 +++ b/js/src/jsapi.cpp
       
     7 @@ -1491,6 +1491,9 @@
       
     8  static void
       
     9  SetNativeStackQuotaAndLimit(JSRuntime* rt, StackKind kind, size_t stackSize)
       
    10  {
       
    11 +#ifdef JS_CPU_SPARC
       
    12 +    stackSize = stackSize * 8 < 7 * 1024 * 1024 ? stackSize * 8 : 7 * 1024 * 1024;
       
    13 +#endif
       
    14      rt->nativeStackQuota[kind] = stackSize;
       
    15       
       
    16  #if JS_STACK_GROWTH_DIRECTION > 0