Closed
Bug 1602741
Opened 4 years ago
Closed 4 years ago
Shell drainJobQueue function may not drain the job queue if FinalizationGroups queue jobs
Categories
(Core :: JavaScript: GC, defect, P1)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla73
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
From bug 1587096 comment 8:
The FinalizationGroup cleanup callback may create new jobs, e.g. resolving a promise.
I would expect that if calling drainJobQueue() triggers the CleanupFinalizationGroup job, then it would drain any resulting new microtasks.
It's probably a matter of calling js::RunJobs a second time after MaybeRunFinalizationGroupCleanupTasks in RunShellJobs.
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → jcoppeard
Priority: -- → P1
Assignee | ||
Comment 1•4 years ago
|
||
Previously this wouldn't drain any jobs queued by FinalizationGroup callbacks.
Comment 2•4 years ago
|
||
Comment 3•4 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox73:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
Updated•4 years ago
|
Has Regression Range: --- → yes
Keywords: regression
You need to log in
before you can comment on or make changes to this bug.
Description
•