Platform Development • Re: The browser hang with 0 CPU load.
Pale Moon forum - Forum index [Unofficial]
April 30, 2026
Reverted the changes and ended up doing it this way, which should work fine on all hardware:
CODE:
static size_tThreadCountForCPUCount(size_t cpuCount){ // Create additional threads on top of the number of cores available, to // provide some excess capacity in case threads pause each other. // Note that cpuCount here is the number of logical processors and threadCount // calculated here just adds some extra capacity on top. Use threadCount // with care as it may end up deadlocking. static const uint32_t EXCESS_THREADS = 4; return cpuCount + EXCESS_THREADS;}{...}size_tGlobalHelperThreadState::maxParseThreads() const{ if (IsHelperThreadSimulatingOOM(js::oom::THREAD_TYPE_PARSE)) return 1; // Use the number of logical processors in a system. return cpuCount;}
Discussion in the ATmosphere