From e152a9889031df99f3ccf9822b6cfe62e816569b Mon Sep 17 00:00:00 2001 From: Ginn Chen Date: Mon, 29 Mar 2010 17:27:51 +0800 Subject: [PATCH] Bug 543709 trace-test/tests/basic/bug529130.js failed with debug version on Solaris r=jimb --- js/src/shell/js.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index a15dbc8f2d8..0d4e4f6d036 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -109,7 +109,14 @@ typedef enum JSShellExitCode { size_t gStackChunkSize = 8192; /* Assume that we can not use more than 5e5 bytes of C stack by default. */ +#if defined(DEBUG) && defined(__SUNPRO_CC) +/* Sun compiler uses larger stack space for js_Interpret() with debug + Use a bigger gMaxStackSize to make "make check" happy. */ +static size_t gMaxStackSize = 5000000; +#else static size_t gMaxStackSize = 500000; +#endif + #ifdef JS_THREADSAFE static PRUintn gStackBaseThreadIndex;