components/desktop/firefox/patches/firefox31-199-stacksize.patch
changeset 5527 611b2d6efdfe
parent 5526 570ac9aab8b2
child 5528 f2f5af510081
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 --- mozilla-esr31/js/src/jsapi.cpp.orig	2015-06-04 17:42:52.465842609 -0700
       
     5 +++ mozilla-esr31/js/src/jsapi.cpp	2015-06-04 17:42:52.468887397 -0700
       
     6 @@ -2120,6 +2120,9 @@
       
     7  static void
       
     8  SetNativeStackQuota(JSRuntime* rt, StackKind kind, size_t stackSize)
       
     9  {
       
    10 +#ifdef JS_CPU_SPARC
       
    11 +    stackSize = stackSize * 8 < 7 * 1024 * 1024 ? stackSize * 8 : 7 * 1024 * 1024;
       
    12 +#endif
       
    13      rt->nativeStackQuota[kind] = stackSize;
       
    14      if (rt->nativeStackBase)
       
    15          RecomputeStackLimit(rt, kind);