Revert SATS fully, idle runnables are working use them, faster.

Revert SATS fully, idle runnables are working use them, faster.
This commit is contained in:
win7-7 2026-01-28 18:04:38 +02:00 committed by wuggy
commit 5a78e79eb9
8 changed files with 91 additions and 774 deletions

View file

@ -368,27 +368,6 @@ public:
// isn't one.
static CycleCollectedJSContext* Get();
static SlowAsynchronousTaskScheduler* GetScheduler()
{
CycleCollectedJSContext* context = Get();
return context ? &context->mSATS : nullptr;
}
// Because of our Web Worker setup being broken, we need to specially initiate
// timers for Worker threads.
static nsresult ScheduleTimer(nsITimer* aTimer,
nsICancelableRunnable* aRunnable,
uint32_t aDelay)
{
CycleCollectedJSContext* context = Get();
NS_ENSURE_STATE(context);
return context->ScheduleTimerForThread(aTimer, aRunnable, aDelay);
}
virtual nsresult ScheduleTimerForThread(nsITimer* aTimer,
nsICancelableRunnable* aRunnable,
uint32_t aDelay) = 0;
// Add aZone to the set of zones waiting for a GC.
void AddZoneWaitingForGC(JS::Zone* aZone)
{