Check that we only reenter the CC during Unlink() and Unroot()

NEW
Unassigned

Status

()

Core
XPCOM
4 years ago
4 years ago

People

(Reporter: mccr8, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
This is sort of a followup to bug 1087799.  Right now, we allow reentering the CC at any time (we just don't do anything).  This is probably a bad idea except during the Unlink() and Unroot() portion of CC, so it would be nice to add some assertions for that.  My idea is that we'd add a boolean to nsCycleCollector that gets set to true when it is okay to reenter, and assert that it is true when we reenter.
You need to log in before you can comment on or make changes to this bug.