Open Bug 1865078 Opened 1 year ago Updated 1 year ago

Consider discarding JIT code per realm instead of zone

Categories

(Core :: JavaScript Engine: JIT, task, P2)

task

Tracking

()

ASSIGNED

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Speedometer tests run in separate realms within a single zone. Discarding JIT code per realm would allow us to make decisions about discarding vs preserving JIT code for each realm separately. If the browser loads a new page in an iframe for example, we can then flag the old realm as dying and more eagerly discard its JIT code on GC.

In bug 1837620 jonco added a linked list of JitScripts to JitZone. Moving this list and a few other data structures to JitRealm makes this pretty straight-forward.

I have some WIP patches implementing this. I'm still looking into our JIT/GC heuristics to see if this is actually a performance or memory improvement.

Whiteboard: [sp3]
Severity: -- → N/A
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.