Bug 941672: assert thread state init'ed upon seeing Exclusive context (r=shu).

This commit is contained in:
Felix S. Klock II 2013-12-03 20:21:01 +01:00
parent 8eb6356a95
commit a4dbd57c7e

View File

@ -1053,7 +1053,11 @@ js::ThreadSafeContext::ThreadSafeContext(JSRuntime *rt, PerThreadData *pt, Conte
contextKind_(kind),
perThreadData(pt),
allocator_(nullptr)
{ }
{
#ifdef JS_WORKER_THREADS
JS_ASSERT_IF(kind == Context_Exclusive, rt->workerThreadState != nullptr);
#endif
}
bool
ThreadSafeContext::isForkJoinSlice() const