Bug 717104 - unreachable debuggee globals should not keep their debuggers alive. r=jorendorff

--HG--
extra : rebase_source : e1b4bc44adea1fa0bb94188ccaccc156c194dfbb
This commit is contained in:
Steve Fink 2012-01-16 17:02:15 -08:00
parent fb5f47f235
commit 8144d41e36

View File

@ -1159,6 +1159,8 @@ Debugger::markAllIteratively(GCMarker *trc)
const GlobalObjectSet &debuggees = dc->getDebuggees();
for (GlobalObjectSet::Range r = debuggees.all(); !r.empty(); r.popFront()) {
GlobalObject *global = r.front();
if (IsAboutToBeFinalized(cx, global))
continue;
/*
* Every debuggee has at least one debugger, so in this case