Closed Bug 1953656 Opened 1 month ago Closed 1 month ago

Make it explicit which callers of ArenaCollection::iter skip main thread arenas

Categories

(Core :: Memory Allocator, task)

task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

No description provided.

ArenaCollection::iter currently returns main thread arenas only when
it's called from the main thread. This is fine, but it makes it unclear
what callers are actually meaning to skip those arenas when not called
from the main thread.

It turns out most of the callers already assume they're on the main
thread, so most uses were fine, but some weren't.

We also remove iter_all, which is now redundant.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/ac3424d7ff09 Make it explicit which callers of ArenaCollection::iter skip main thread arenas. r=pbone
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: