From d5a201ece6b82178dc776f504fc5ad8052243acf Mon Sep 17 00:00:00 2001 From: Steve Fink Date: Wed, 22 Aug 2018 10:48:27 -0700 Subject: [PATCH] Bug 1482178 - IonBuilder needs to access script zone from any thread, r=jandem --HG-- extra : topic : nursery.strings.fix extra : rebase_source : a8d4c0f88c22ae4354eddce0dc6a6c77d85797b8 --- js/src/vm/HelperThreads.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/vm/HelperThreads.cpp b/js/src/vm/HelperThreads.cpp index 55012158d384..be76be195d67 100644 --- a/js/src/vm/HelperThreads.cpp +++ b/js/src/vm/HelperThreads.cpp @@ -279,7 +279,7 @@ IonBuilderMatches(const CompilationSelector& selector, jit::IonBuilder* builder) bool match(JSScript* script) { return script == builder_->script(); } bool match(Realm* realm) { return realm == builder_->script()->realm(); } - bool match(Zone* zone) { return zone == builder_->script()->zone(); } + bool match(Zone* zone) { return zone == builder_->script()->zoneFromAnyThread(); } bool match(JSRuntime* runtime) { return runtime == builder_->script()->runtimeFromAnyThread(); } bool match(AllCompilations all) { return true; } bool match(ZonesInState zbs) {