Simplify representation of zones set
Categories
(Core :: JavaScript: GC, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: jonco, Assigned: jonco)
References
Details
Attachments
(4 files)
The GC iterates over zones in many places. Currently the set of zones is represented by a single atoms zone and a vector of non-atoms zones. Iterators such as AllZonesIter exist to hide this distinction.
It would be simpler to represent this as a single vector with the invariant that the atoms zone is always the first element. Then iteration is just vector iteration, optionally starting at the second element if you don't want the atoms zone.
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
Creation of non-atoms zones already happens in GC.cpp, in js::NewRealm.
Arguably creation of zones should be split between the GC and the VM. Zones are
a GC concept, but much of their contents are VM specific.
Depends on D155224
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D155225
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D155226
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c54c096740d9
https://hg.mozilla.org/mozilla-central/rev/4a3ba646d292
https://hg.mozilla.org/mozilla-central/rev/0db63b7bac22
https://hg.mozilla.org/mozilla-central/rev/c1884222a881
Description
•