Open Bug 1768795 Opened 1 year ago Updated 1 year ago

Make nsTerminator shutdown phase duration measure become wall-clock based


(Toolkit :: Async Tooling, task, P3)





(Reporter: jstutte, Unassigned)



(Keywords: good-first-bug)

Currently nsTerminator::RunWatchdog counts ticks while looping, assuming that the effective duration of the sleep is approximately similar to the requested one.

In particular under MacOS (but also Windows) the effective duration of each loop run seems to be largely varying and tending to last significantly longer, up to 50%, it seems.

We could substitute the counter with a wall-clock based effective-ms-passed measurement at each loop run (and re-transform this into ticks).

Component: XPCOM → Async Tooling
Keywords: good-first-bug
Product: Core → Toolkit
See Also: → 1766572
Severity: -- → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.