Closed Bug 1923428 Opened 1 year ago Closed 1 year ago

Unnecessary barriers during Map/Set finalization

Categories

(Core :: JavaScript: GC, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

While profiling I noticed that prebarriers were showing up during MapObject finalization. These are not necessary when the GC is destroying things itself so we should be able to remove them.

This changes the Map/Set code to create and destroy the ordered hash table
tables as the unbarriered version and then casts as necessary elsewhere.

I changed the accessors to use reinterpret_cast rather than calling
maybePtrFromReservedSlot which uses static_cast as this is slightly less
dubious.

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ee0dfaa78303 Remove barriers when finalizing Map/Set tables r=jandem
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: