Bug 941821 - Suppress a rooting analysis hazard false positive across ForkJoin invocation; r=sfink

--HG--
extra : rebase_source : f75e0939c648187297c9ecba3ee31f817316d5e4
This commit is contained in:
Terrence Cole 2013-11-21 11:45:41 -08:00
parent 0f1cbbb6e3
commit 9ea02cd273

View File

@ -1473,6 +1473,11 @@ ForkJoinShared::executePortion(PerThreadData *perThread,
// WARNING: This code runs ON THE PARALLEL WORKER THREAD.
// Therefore, it should NOT access `cx_` in any way!
// ForkJoinSlice already contains an AutoAssertNoGC; however, the analysis
// does not propagate this type information. We duplicate the assertion
// here for maximum clarity.
JS::AutoAssertNoGC nogc;
Allocator *allocator = allocators_[threadId];
ForkJoinSlice slice(perThread, threadId, numSlices_, allocator,
this, &records_[threadId]);