Skip to content

Commit

Permalink
#607: bump worker thread stack size to 64MB (with thanks to @NapalmSauce
Browse files Browse the repository at this point in the history
)
  • Loading branch information
classilla committed Jul 5, 2020
1 parent 420d67c commit c530265
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion caps/nsScriptSecurityManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal,
if (0 ||

#ifdef __ppc__
BLOC("static.twitchcdn.net") ||
/* No sites in blocklist currently */
#endif // __ppc__

0) {
Expand Down
8 changes: 6 additions & 2 deletions dom/workers/WorkerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c530265

Please sign in to comment.