Bug 610309 - Increase DEFAULT_MAX_STACK_SIZE to make 'make check' happy on sparc. r=gal
authorLeon Sha <leon.sha@oracle.com>
Mon, 08 Nov 2010 15:01:12 +0800
changeset 57726 5f6bdc7a4f5c7976f9b74dd1d6abe6b82a76ce1e
parent 57725 08f54dfe07a34e7fb8d540727e0b1cb5d148f8f4
child 57727 af75274bc041ef14c04295721f933e1b870fb518
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersgal
bugs610309
milestone2.0b8pre
Bug 610309 - Increase DEFAULT_MAX_STACK_SIZE to make 'make check' happy on sparc. r=gal
js/src/shell/js.cpp
--- a/js/src/shell/js.cpp
+++ b/js/src/shell/js.cpp
@@ -118,17 +118,17 @@ typedef enum JSShellExitCode {
     EXITCODE_FILE_NOT_FOUND     = 4,
     EXITCODE_OUT_OF_MEMORY      = 5,
     EXITCODE_TIMEOUT            = 6
 } 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)
+#if (defined(DEBUG) && defined(__SUNPRO_CC))  || defined(JS_CPU_SPARC)
 /* Sun compiler uses larger stack space for js_Interpret() with debug
    Use a bigger gMaxStackSize to make "make check" happy. */
 #define DEFAULT_MAX_STACK_SIZE 5000000
 #else
 #define DEFAULT_MAX_STACK_SIZE 500000
 #endif
 
 size_t gMaxStackSize = DEFAULT_MAX_STACK_SIZE;