Closed Bug 1399928 Opened 7 years ago Closed 7 years ago

RegExpShared source field should be a GCPtr

Categories

(Core :: JavaScript: GC, enhancement)

55 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla57
Tracking Status
firefox57 --- fixed

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(1 file)

At the moment it's a HeapPtr<JSAtom*>, a hangover from before RegExpShared was a GC thing.

We use GCPtr for pointers beteween GC things and HeapPtr for pointers from the malloced heap to GC things.

This case works as it is, but only because JSAtoms are not nursery allocated.
Attachment #8908209 - Flags: review?(sphink)
Attachment #8908209 - Flags: review?(sphink) → review+
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/53d445528ef2
RegExpShared::source should be a GCPtr r=sfink
https://hg.mozilla.org/mozilla-central/rev/53d445528ef2
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: