Closed Bug 1667740 Opened 4 years ago Closed 4 years ago

Use reference count for ScriptStencil.immutableScriptData

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Regressed 1 open bug)

Details

Attachments

(4 files)

If we want to keep ScriptStencil after instantiation (for off-thread encoding, or cache), instantiation shouldn't steal ScriptStencil.immutableScriptData.

instantiation moves the field into js::RuntimeScriptData.isd_, and js::RuntimeScriptData already has reference count.
We could use js::RuntimeScriptData for ScriptStencil.immutableScriptData, or make it variant.

Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Pushed by arai_a@mac.com: https://hg.mozilla.org/integration/autoland/rev/80ddf8c23278 Part 1: Use RuntimeScriptData in ScriptStencil. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/232b437d7a36 Part 2: Move RuntimeScriptData to vm/SharedStencil.h. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/e0e696f32022 Part 3: Rename RuntimeScriptData to SharedImmutableScriptData. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/8a73f3d643d4 Part 4: Move SharedImmutableScriptData XDR into StencilXDR class. r=tcampbell
Regressions: 1668489
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e3005ef440a Part 1: Use RuntimeScriptData in ScriptStencil. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/330a87688dff Part 2: Move RuntimeScriptData to vm/SharedStencil.h. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/873b133c7f62 Part 3: Rename RuntimeScriptData to SharedImmutableScriptData. r=tcampbell https://hg.mozilla.org/integration/autoland/rev/249ddc3a4e92 Part 4: Move SharedImmutableScriptData XDR into StencilXDR class. r=tcampbell
No longer regressions: 1668489
Regressions: 1676203
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: