Closed Bug 1716529 Opened 3 years ago Closed 3 years ago

Defer creating allocation sites until running in baseline

Categories

(Core :: JavaScript: GC, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(1 file, 1 obsolete file)

Currently we create allocation sites when attaching cache IR stubs which can happen when code is running in the baseline interpreter. It would be preferable to defer this until the code is hot enough to run in baseline proper, to avoid overhead for code that is not particularly hot.

Blocks: 1714936

This stops creating allocation sites for IC stubs when running in the baseline
interpreter. When a script is compiled in baseline proper this scans the IC
chain for ops that could potentially reference allocation sites, and allocates
them where necessary.

This should result in fewer sites being created and less overhead for code that
doesn't reach baseline.

Attachment #9227150 - Attachment description: Bug 1716529 - Don't craate allocation sites until baseline r?jandem → Bug 1716529 - Don't create allocation sites until baseline r?jandem

This stops creating allocation sites for IC stubs when running in the baseline
interpreter. When a script is compiled in baseline proper this scans the IC
chain for ops that could potentially reference allocation sites, and allocates
them where necessary.

This should result in fewer sites being created and less overhead for code that
doesn't reach baseline.

Attachment #9227150 - Attachment is obsolete: true
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/360ca5ba051e
Don't create allocation sites until baseline r=jandem

Backed out for causing spidermonkey build bustages.

Push with failures

Failure log

Backout link

Flags: needinfo?(jcoppeard)
Flags: needinfo?(jcoppeard)
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ff54f41b526b
Don't create allocation sites until baseline r=jandem
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: