mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
e9c5a4fb02
commit
b9385d3634
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user