Closed Bug 1792504 Opened 2 years ago Closed 2 years ago

Don't check gray mark bits for types that are never marked gray

Categories

(Core :: JavaScript: GC, task)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

Not all kinds of GC thing can be marked gray: https://searchfox.org/mozilla-central/source/js/public/TraceKind.h#81-104

Nevertheless, we currently check the gray bit for all kinds when we're checking whether something is marked at all. This happens in several places and results in us checking both bits in cases where it's unnecessary.

This adds a new header gc/TraceKind.h which contains definitions related to
TraceKind that aren't required outside of the engine.

Assignee: nobody → jcoppeard
Status: NEW → ASSIGNED
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/57a896ea3efb
Don't check gray mark bits for types that are never marked gray r=sfink
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: