When traversing fragments, don't forget to count peers (bug 521169, r=gal).

This commit is contained in:
David Anderson 2009-10-14 03:00:34 -04:00
parent 40c01b04b7
commit dbf3e1f3ca

View File

@ -2808,6 +2808,12 @@ JSTraceMonitor::mark(JSTracer* trc)
while (f) {
if (TreeInfo* ti = (TreeInfo*)f->vmprivate)
MarkTreeInfo(trc, ti);
VMFragment* peer = (VMFragment*)f->peer;
while (peer) {
if (TreeInfo* ti = (TreeInfo*)peer->vmprivate)
MarkTreeInfo(trc, ti);
peer = (VMFragment*)peer->peer;
}
f = f->next;
}
}