Open Bug 1588127 Opened 5 years ago Updated 2 years ago

Make it harder to misuse GC hash tables

Categories

(Core :: JavaScript: GC, task, P2)

task

Tracking

()

People

(Reporter: jonco, Unassigned)

Details

Following on from bug 1585921, we should document what the correct/recommended barriers are for GC hash tables and then try to enforce this statically as best we can.

One issue is for atom keys. Previously I think we advised using HeapPtr for these, but now that strings can be nursery allocated these have a post barrier which will execute even though atoms are never nursery allocated. So it works, it's slightly inefficient, but mainly it worries me that we're even considering updating atom keys.

Priority: -- → P2
Severity: normal normal → S3 S3
You need to log in before you can comment on or make changes to this bug.