mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 943924 - Use default stack size for JS worker threads on Windows, r=billm.
This commit is contained in:
parent
3ce9348261
commit
143fb656fd
@ -358,7 +358,15 @@ js::WaitForOffThreadParsingToFinish(JSRuntime *rt)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
// The default stack size for new threads on Windows is 1MB, but specifying a
|
||||
// smaller explicit size to NSPR on thread creation causes our visible memory
|
||||
// usage to increase. Just use the default stack size on Windows.
|
||||
static const uint32_t WORKER_STACK_SIZE = 0;
|
||||
#else
|
||||
static const uint32_t WORKER_STACK_SIZE = 512 * 1024;
|
||||
#endif
|
||||
|
||||
static const uint32_t WORKER_STACK_QUOTA = 450 * 1024;
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user