Consider canceling Ion compilations in js::SetRealmIsDyingHint
Categories
(Core :: JavaScript Engine: JIT, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
js::SetRealmIsDyingHint is called when the browser navigates to a different page/realm. We discard JIT code more eagerly for dying realms, but we should also consider canceling off-thread compilations immediately. It's probably possible for JS code to still run in such realms, but it's unlikely and even less likely to benefit from Ion, so canceling here is a good trade-off.
| Assignee | ||
Comment 1•8 days ago
|
||
When the browser tells us a window's realm is dying, we now cancel its
off-thread Ion compilations. Scripts in that realm are unlikely to run again or
benefit from Ion compilation.
One of the effects this has is that we no longer hit the TooManyUnlinkedTasks
threshold on Speedometer so we do less (eager) linking of Ion compilations.
This is just an heuristic so the patch adds a WaitForRunningCompiles argument
to CancelOffThreadIonCompile so that we don't wait for background threads.
Updated•8 days ago
|
Comment 3•7 days ago
|
||
| bugherder | ||
Description
•