Open Bug 1846193 Opened 11 months ago Updated 8 months ago

Add assertion to Task::AddDependency to avoid freeing main-thread-only task off main thread

Categories

(Core :: XPCOM, enhancement, P3)

enhancement

Tracking

()

ASSIGNED

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

(see bug 1839103 for more details)

Currently main-thread-only task is freed only on main thread, but it's not the case if there's an off-main-thread-only task that depends on the main-thread-only task.
For now, I'll add an assertion to Task::AddDependency to avoid such situation.

If such situation occurs, then we need to look into bug 1839103.

Attachment #9346415 - Attachment description: Bug 1846193 - Add assertion to Task::AddDependency to avoid freeing main-thread-only task off main thread. r?bas! → Bug 1846193 - Add optional assertion to Task::AddDependency to avoid freeing main-thread-only task off main thread. r?bas!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: