mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 18:47:53 +00:00
Bug 941821 - Suppress a rooting analysis hazard false positive across ForkJoin invocation; r=sfink
--HG-- extra : rebase_source : f75e0939c648187297c9ecba3ee31f817316d5e4
This commit is contained in:
parent
b38b9337d2
commit
9289a3dc71
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user