Closed Bug 1634435 Opened 5 years ago Closed 5 years ago

Remove some AutoGCRooter kinds

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(4 files)

We can remove some AutoGCRooter kinds, either by using Rooted or making them use CustomAutoRooter where this makes sense.

Ideally we'd remove AutoGCRooter entirely and use Rooted for everything, but it's used for wrapper rooters which are a special case and CustomAutoRooter which is used by DOM bindings.

We can make these kinds use the existing Rooted infrastructure.

Depends on D73292

Rename this to RootedSomething for consistency. Let me know if you have a better idea for the name. It's a bit unwieldy but it's only used in a couple of places.

Depends on D73295

Since the parsers have a virtual trace method already we can handle these by making them CustomAutoRooters and get rid of the special kinds.

Depends on D73296

Pushed by jcoppeard@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/468d51ba84c7 Replace AutoValueArray and AutoArrayRooter implementations with Rooted<> r=jandem https://hg.mozilla.org/integration/autoland/rev/2d04df2a8065 Rename AutoValueArray to RootedValueArray everywhere for consistency with other rooted things r=jandem,mccr8 https://hg.mozilla.org/integration/autoland/rev/20f7c76d9f35 Rename AutoArrayRooter to RootedExternalValueArray r=jandem https://hg.mozilla.org/integration/autoland/rev/e4aadc2d4945 Remove parser auto rooters r=sfink
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: