Add cycle collection support for MFBT EnumeratedArray

RESOLVED FIXED in mozilla31

Status

()

defect
RESOLVED FIXED
6 years ago
5 years ago

People

(Reporter: bjacob, Assigned: bjacob)

Tracking

Trunk
mozilla31
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

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: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.