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

@ -1035,6 +1035,7 @@ public:
~WorkerJSContext()
{
MOZ_COUNT_DTOR_INHERITED(WorkerJSContext, CycleCollectedJSContext);
JSContext* cx = MaybeContext();
if (!cx) {
return; // Initialize() must have failed
@ -1102,20 +1103,6 @@ public:
nsCycleCollector_doDeferredDeletion();
}
nsresult ScheduleTimerForThread(nsITimer* aTimer,
nsICancelableRunnable* aRunnable,
uint32_t aDelay) override
{
NS_ENSURE_STATE(mWorkerPrivate);
nsRefPtr<ExternalRunnableWrapper> wrapper =
new ExternalRunnableWrapper(mWorkerPrivate, aRunnable);
nsRefPtr<TimerThreadEventTarget> target =
new TimerThreadEventTarget(mWorkerPrivate, wrapper);
aTimer->SetTarget(target);
return aTimer->InitWithFuncCallback(DummyCallback, nullptr, aDelay,
nsITimer::TYPE_ONE_SHOT);
}
virtual void CustomGCCallback(JSGCStatus aStatus) override
{
if (!mWorkerPrivate) {