mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
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:
parent
df3bcbbb38
commit
5a78e79eb9
8 changed files with 91 additions and 774 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue