Assert that GC things are only marked on the main thread, bug 815906. r=billm

This commit is contained in:
Brian Hackett 2012-11-27 21:07:34 -08:00
parent 6c3e9b3b9e
commit 24781f1011

View File

@ -110,6 +110,10 @@ CheckMarkedThing(JSTracer *trc, T *thing)
DebugOnly<JSRuntime *> rt = trc->runtime;
#ifdef DEBUG
rt->assertValidThread();
#endif
JS_ASSERT_IF(thing->compartment()->requireGCTracer(), IS_GC_MARKING_TRACER(trc));
JS_ASSERT(thing->isAligned());