Open Bug 1854652 Opened 3 years ago Updated 2 years ago

Investigate better scheduling for XPCJSRuntime::DoCycleCollectionCallback

Categories

(Core :: XPConnect, task, P3)

task

Tracking

()

People

(Reporter: smaug, Assigned: smaug)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

XPCJSRuntime::DoCycleCollectionCallback runs CC often at the worst possible time, when the main thread is busy doing other things.
Just changing it use idle time might be good, and at least locally that seems to behave well, but need to get performance numbers for this.

Looks like it triggers a sync CC and without any pre-CC optimization phases, so the triggered CC can be really long.

Depends on: 1868437

(In reply to Olli Pettay [:smaug][bugs@pettay.fi] from comment #1)

Looks like it triggers a sync CC and without any pre-CC optimization phases, so the triggered CC can be really long.

It's sync because it's a work around for incremental barriers keeping things alive which should die. But we should definitely do any optimization phases that would make this faster.

You need to log in before you can comment on or make changes to this bug.