<ajeffrey> A rooting question for globals... <ajeffrey> Does AutoCompartment root the global? <ajeffrey> Or do I need to root it myself? <tcampbell> it does not root Fortunately, entering a compartment does root the global (although the mechanism is unobvious--JSCompartment::traceRoots() traces the global if necessary).
Assignee: nobody → jorendorff
Status: NEW → ASSIGNED
Attachment #8911326 - Flags: review?(sphink)
Attachment #8911326 - Flags: review?(sphink) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/c3c6f7e45868cd69338588f808a86472caeaae0c Bug 1402456 - Document that entering a compartment roots the global. r=sfink
You need to log in before you can comment on or make changes to this bug.