Closed Bug 1675074 Opened 4 years ago Closed 4 years ago

Make WellKnownParserAtoms part of the rodata section

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

As a continuation of Bug 1666274, we should make the rest of the well-known ParserAtoms part of the ROM data. This is useful to do after Bug 1668672 which uses a LifoAlloc for these atoms.

This removes the LifoAlloc from WellKnownParserAtoms and instead using
constexpr to store the atom data in WellKnownParserAtoms_ROM so that this is
all evaluated at startup time and live in read-only memory.

The WellKnownParserAtoms itself still maintains fields and a hash-table that
are not in the ROM, but exist once per JSRuntime.

Assignee: nobody → tcampbell
Status: NEW → ASSIGNED
Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e83e1fece2dd
Use constexpr for all well-known ParserAtoms. r=arai
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: