mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Assert that GC things are only marked on the main thread, bug 815906. r=billm
This commit is contained in:
parent
6c3e9b3b9e
commit
24781f1011
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user