From c530265a00d963851f4a736764d4ce4ab18f59ee Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Sun, 5 Jul 2020 16:35:14 -0700 Subject: [PATCH] #607: bump worker thread stack size to 64MB (with thanks to @NapalmSauce) --- caps/nsScriptSecurityManager.cpp | 2 +- dom/workers/WorkerThread.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/caps/nsScriptSecurityManager.cpp b/caps/nsScriptSecurityManager.cpp index 8beb23e44..790483e25 100644 --- a/caps/nsScriptSecurityManager.cpp +++ b/caps/nsScriptSecurityManager.cpp @@ -700,7 +700,7 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal, if (0 || #ifdef __ppc__ - BLOC("static.twitchcdn.net") || + /* No sites in blocklist currently */ #endif // __ppc__ 0) { diff --git a/dom/workers/WorkerThread.cpp b/dom/workers/WorkerThread.cpp index 40b617883..f45600f84 100644 --- a/dom/workers/WorkerThread.cpp +++ b/dom/workers/WorkerThread.cpp @@ -24,9 +24,13 @@ using namespace mozilla::ipc; namespace { -// The C stack size. We use the same stack size on all platforms for -// consistency. +// The C stack size. +#ifdef __ppc__ +// TenFourFox issue 607. +const uint32_t kWorkerStackSize = 16384 * sizeof(size_t) * 1024; +#else const uint32_t kWorkerStackSize = 256 * sizeof(size_t) * 1024; +#endif } // namespace