Closed Bug 1320046 Opened 8 years ago Closed 2 years ago

Main-thread JSContext is used to create objects for use by off-main-thread parsing

Categories

(Core :: JavaScript: GC, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jonco, Unassigned)

References

Details

(Keywords: triage-deferred)

In CreateGlobalForOffThreadParse we don't want nursery allocations to happen for the new compartment which is going to be used off-main-thread, but we still use the original JSContext* to call EnsureParserCreatedClasses, which does allow nursery allocation to happen.

This caused bug 1319952.

I think we can refactor this to create the the off thread ExclusiveContext first and use that instead, which will remove the possibility of this happening.
Keywords: triage-deferred
Priority: -- → P3

This doesn't happen any more since the stencil work landed.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.