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)
Core
JavaScript Engine: JIT
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 JitScript
s 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.
Updated•1 year ago
|
Whiteboard: [sp3]
Updated•1 year ago
|
Severity: -- → N/A
Priority: -- → P2
Updated•1 year ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-655
You need to log in
before you can comment on or make changes to this bug.
Description
•