Fix bogus assert (525943, r=dvander).
authorAndreas Gal <gal@mozilla.com>
Mon, 02 Nov 2009 13:41:26 -0800
changeset 34567 0bbf371824809cbe3b5212f4e363295e386a74e3
parent 34566 6e9035c7827e45e8ed03d8f22d4f58c1977ec77b
child 34568 444068768c1ebf17466baded2b413b9869607a83
push idunknown
push userunknown
push dateunknown
reviewersdvander
bugs525943
milestone1.9.3a1pre
Fix bogus assert (525943, r=dvander).
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -1506,17 +1506,17 @@ NewFinalizableGCThing(JSContext *cx, uns
         if (thing) {
             *freeListp = thing->link;
             METER(astats->localalloc++);
             break;
         }
 
 #ifdef JS_TRACER
         if (JS_TRACE_MONITOR(cx).useReservedObjects) {
-            JS_ASSERT(JS_ON_TRACE(cx));
+            JS_ASSERT(!JS_ON_TRACE(cx));
             JS_ASSERT(thingKind == FINALIZE_OBJECT);
             JSTraceMonitor *tm = &JS_TRACE_MONITOR(cx);
             thing = (JSGCThing *) tm->reservedObjects;
             JS_ASSERT(thing);
             tm->reservedObjects = JSVAL_TO_OBJECT(tm->reservedObjects->fslots[0]);
             fromTraceReserve = true;
             break;
         }