Bug 956899 - Remove unused stack-base-address tracking code from the JS shell. r=jwalden

--HG--
extra : rebase_source : bfff6e4eb041241a108b43d5e1530b7232614c66
This commit is contained in:
Bert Belder 2014-01-08 12:54:24 -06:00
parent e9c5a4fb02
commit b9385d3634

View File

@ -108,12 +108,6 @@ static size_t gMaxStackSize = 2 * 128 * sizeof(size_t) * 1024;
static size_t gMaxStackSize = 128 * sizeof(size_t) * 1024;
#endif
#ifdef JS_THREADSAFE
static unsigned gStackBaseThreadIndex;
#else
static uintptr_t gStackBase;
#endif
/*
* Limit the timeout to 30 minutes to prevent an overflow on platfoms
* that represent the time internally in microseconds using 32-bit int.
@ -5721,7 +5715,6 @@ main(int argc, char **argv, char **envp)
sArgc = argc;
sArgv = argv;
int stackDummy;
JSRuntime *rt;
JSContext *cx;
int result;
@ -5739,15 +5732,6 @@ main(int argc, char **argv, char **envp)
setlocale(LC_ALL, "");
#endif
#ifdef JS_THREADSAFE
if (PR_FAILURE == PR_NewThreadPrivateIndex(&gStackBaseThreadIndex, nullptr) ||
PR_FAILURE == PR_SetThreadPrivate(gStackBaseThreadIndex, &stackDummy)) {
return 1;
}
#else
gStackBase = (uintptr_t) &stackDummy;
#endif
#ifdef XP_OS2
/* these streams are normally line buffered on OS/2 and need a \n, *
* so we need to unbuffer then to get a reasonable prompt */