Bug 1578075 - Increase stack size of paint threads on macOS Catalina to 1MB. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D46834

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Lee Salzman 2019-09-23 20:02:17 +00:00
parent 37bab0bd83
commit 523a527e84

View File

@ -79,7 +79,7 @@ static uint32_t GetPaintThreadStackSize() {
#else
// Workaround bug 1578075 by increasing the stack size of paint threads
if (nsCocoaFeatures::OnCatalinaOrLater()) {
static const uint32_t kCatalinaPaintThreadStackSize = 512 * 1024;
static const uint32_t kCatalinaPaintThreadStackSize = 1024 * 1024;
static_assert(kCatalinaPaintThreadStackSize >= nsIThreadManager::DEFAULT_STACK_SIZE,
"update default stack size of paint "
"workers");