From d78c6df4828dd8c19166e1c06762a898463f563a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 14 Oct 2009 03:00:34 -0400 Subject: [PATCH] When traversing fragments, don't forget to count peers (bug 521169, r=gal). --- js/src/jstracer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 5c2e46bf86..86aaec660b 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -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; } } -- 2.11.4.GIT