Bug 1157963 - Bustage follow-up. r=shu, a=bustage
authorRyan VanderMeulen <ryanvm@gmail.com>
Wed, 06 May 2015 22:31:01 -0400
changeset 265886 c53995c2fe1b13204beca609e2e24d502e86cc2b
parent 265885 dc53539d970c0bd85248218fc15838622b9bac7c
child 265887 5822851d291182d06feade235dd463748a190740
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersshu, bustage
bugs1157963
milestone39.0a2
Bug 1157963 - Bustage follow-up. r=shu, a=bustage CLOSED TREE
js/src/jscompartment.cpp
--- a/js/src/jscompartment.cpp
+++ b/js/src/jscompartment.cpp
@@ -756,17 +756,17 @@ CreateLazyScriptsForCompartment(JSContex
     // same LazyScript may create different JSScripts due to relazification of
     // clones. See bug 1105306.
     for (gc::ZoneCellIter i(cx->zone(), JSFunction::FinalizeKind); !i.done(); i.next()) {
         JSObject* obj = i.get<JSObject>();
 
         // Sweeping is incremental; take care to not delazify functions that
         // are about to be finalized. GC things referenced by objects that are
         // about to be finalized (e.g., in slots) may already be freed.
-        if (gc::IsAboutToBeFinalizedUnbarriered(&obj) ||
+        if (gc::IsObjectAboutToBeFinalized(&obj) ||
             obj->compartment() != cx->compartment() ||
             !obj->is<JSFunction>())
         {
             continue;
         }
 
         JSFunction* fun = &obj->as<JSFunction>();
         if (fun->isInterpretedLazy()) {