Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit c93f700

Browse files
committed
Bug 1550108 - Reduce stack size on StartupCache threads r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D46225 --HG-- extra : moz-landing-system : lando
1 parent e64355e commit c93f700

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

startupcache/StartupCache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void StartupCache::StartPrefetchMemoryThread() {
251251
// barring a coordinated global scheduling system this is the best we get.
252252
mPrefetchThread = PR_CreateThread(
253253
PR_USER_THREAD, StartupCache::ThreadedPrefetch, this, PR_PRIORITY_NORMAL,
254-
PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
254+
PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 256 * 1024);
255255
}
256256

257257
/**
@@ -694,7 +694,7 @@ void StartupCache::WriteTimeout(nsITimer* aTimer, void* aClosure) {
694694
startupCacheObj->mCacheData.reset();
695695
startupCacheObj->mWriteThread = PR_CreateThread(
696696
PR_USER_THREAD, StartupCache::ThreadedWrite, startupCacheObj,
697-
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
697+
PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 256 * 1024);
698698
}
699699

700700
// We don't want to refcount StartupCache, so we'll just

0 commit comments

Comments
 (0)