Commit 6b6406d7 authored by Terrence Cole's avatar Terrence Cole
Browse files

Bug 941821 - Fix an exact rooting hazard false positive across ForkJoin invocation; r=sfink

parent 9d53a703
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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(runtime());

    Allocator *allocator = allocators_[threadId];
    ForkJoinSlice slice(perThread, threadId, numSlices_, allocator,
                        this, &records_[threadId]);