Remove unnecessary wrapper runnable from CreateDirectTaskDrainer() for stable state runnables
Categories
(Core :: Audio/Video: MediaStreamGraph, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: karlt, Assigned: karlt)
References
Details
Attachments
(3 files)
The CreateDirectTaskDrainer() call was added in https://hg.mozilla.org/mozilla-central/rev/02e5708a75fcdd9e8e4b065995f00b29896fb4b5#l9.32 to use an AbstractThread appropriate for the stream (https://bugzilla.mozilla.org/show_bug.cgi?id=1314833#c76) but became unnecessary after separate MSGs for used each DocGroup and the MSG got a single AbstractThread https://hg.mozilla.org/mozilla-central/rev/5c2fea87df16#l9.388
The original DrainDirectTask() call was added for reasons described in https://bugzilla.mozilla.org/show_bug.cgi?id=1144486#c16 which should now be unnecessary since https://hg.mozilla.org/integration/autoland/rev/ed7c9d7a635d
Assignee | ||
Comment 1•6 years ago
|
||
I suspect mixing AbstractThread-style state-mirroring with runnables queued directly for stable-state was never intended to be supported in general. EventTargetWrapper uses the stable-state to run the direct tasks, which is not going to be able to run immediately after every stable state event. I don't see any direct task support in CycleCollectedJSContext::ProcessStableStateQueue(): https://searchfox.org/mozilla-central/rev/93905b660fc99a5d52b683690dd26471daca08c8/xpcom/base/CycleCollectedJSContext.cpp#379
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
The original DrainDirectTask() call was added for reasons described in https://bugzilla.mozilla.org/show_bug.cgi?id=1144486#c16 which should now be unnecessary since https://hg.mozilla.org/integration/autoland/rev/ed7c9d7a635d
The code being removed here was rework to use an appropriate AbstractThread:
https://hg.mozilla.org/mozilla-central/rev/02e5708a75fcdd9e8e4b065995f00b29896fb4b5#l9.32
https://bugzilla.mozilla.org/show_bug.cgi?id=1314833#c76
Assignee | ||
Comment 4•6 years ago
|
||
Depends on D20604
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D20605
Assignee | ||
Comment 6•6 years ago
|
||
Updated•6 years ago
|
Comment 8•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/2051c2dbfeda
https://hg.mozilla.org/mozilla-central/rev/3740242a0860
https://hg.mozilla.org/mozilla-central/rev/bda89c19aff6
Description
•