Closed Bug 989320 Opened 10 years ago Closed 10 years ago

Add cycle collection support for MFBT EnumeratedArray

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: bjacob, Assigned: bjacob)

References

Details

Attachments

(1 file)

EnumeratedArray is a new MFBT class for plain static arrays indexed by a typed enum, that is being added in bug 989123.

In the WebGL implementation, I have an array of pointers, WebGLContext::mExtensions, that is cycle-collected, and that I want to convert to be an EnumeratedArray. For that, I need to add cycle collection support for EnumeratedArray. I could keep it local to content/canvas for now, but since it's so unintrusive and simple, I thought we might as well put it right away in xpcom/glue where other code converting to EnumeratedArray will be able to find it.
Attachment #8398492 - Flags: review?(continuation)
Attachment #8398492 - Flags: review?(continuation) → review+
Blocks: 989325
https://hg.mozilla.org/mozilla-central/rev/5560662e5eff
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.