зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503968 - set Watchdog thread stack size to at least platform minimal stack size. r=bholley
This commit is contained in:
Родитель
6dda6f1766
Коммит
1aa4b36f30
|
@ -81,8 +81,11 @@ using namespace JS;
|
|||
using mozilla::dom::AutoEntryScript;
|
||||
|
||||
// The watchdog thread loop is pretty trivial, and should not require much stack
|
||||
// space to do its job. So only give it 32KiB.
|
||||
static constexpr size_t kWatchdogStackSize = 32 * 1024;
|
||||
// space to do its job. So only give it 32KiB or the platform minimum.
|
||||
#if ! defined(PTHREAD_STACK_MIN)
|
||||
#define PTHREAD_STACK_MIN 0
|
||||
#endif
|
||||
static constexpr size_t kWatchdogStackSize = PTHREAD_STACK_MIN < 32 * 1024 ? 32 * 1024 : PTHREAD_STACK_MIN;
|
||||
|
||||
static void WatchdogMain(void* arg);
|
||||
class Watchdog;
|
||||
|
|
Загрузка…
Ссылка в новой задаче