Closed Bug 1187985 Opened 9 years ago Closed 9 years ago

Store PersistentRooted lists in an array

Categories

(Core :: JavaScript: GC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: terrence, Assigned: terrence)

References

Details

Attachments

(1 file)

Eventually we'd like to make Rooted and PersistentRooted similar enough to share the majority of their infrastructure code. The easiest first step is to use an array that is symmetrical to Rooted's list head array for storage.

One important note is that we don't need separate lists for JSObject and JSFunction, as they have the same TraceKind. Secondly, I've changed both Mark and Finish to go through getPersistentRootedList so that there is no ambiguity about which lists are unused at the moment.
Attachment #8639366 - Flags: review?(sphink)
Attachment #8639366 - Flags: review?(sphink) → review+
Blocks: 1188124
https://hg.mozilla.org/mozilla-central/rev/fb278d03ce5a
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.