Bug 1384399 - Change meaning of js::SystemZoneAvailable to return false if the system zone is owned by the current context (r=bhackett)
authorBill McCloskey <billm@mozilla.com>
Wed, 19 Jul 2017 16:25:06 -0700
changeset 420575 35368df4e011b0b1e7bef2936ad656d2cd4e17b1
parent 420574 8853b5119f6881cad9693231dd03648b45eaee79
child 420576 fac66a370cf5f2ab1757e2714ca6901b5260aac9
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbhackett
bugs1384399
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1384399 - Change meaning of js::SystemZoneAvailable to return false if the system zone is owned by the current context (r=bhackett) MozReview-Commit-ID: L8FUk997x4s
js/src/jsfriendapi.cpp
--- a/js/src/jsfriendapi.cpp
+++ b/js/src/jsfriendapi.cpp
@@ -1495,10 +1495,10 @@ js::SetCooperativeYieldCallback(JSContex
 {
     cx->setYieldCallback(callback);
 }
 
 JS_FRIEND_API(bool)
 js::SystemZoneAvailable(JSContext* cx)
 {
     CooperatingContext& owner = cx->runtime()->gc.systemZoneGroup->ownerContext();
-    return owner.context() == cx || owner.context() == nullptr;
+    return owner.context() == nullptr;
 }