Bug 899759 - Bustage fix on a CLOSED TREE.
authorBill McCloskey <wmccloskey@mozilla.com>
Wed, 31 Jul 2013 12:05:51 -0700
changeset 153097 3ce7cb22607a9e8e7a79e7234e34093d255de144
parent 153096 50f69b500c020dc5397fbcd4ef8eca26d7d01c38
child 153098 60d17705f2fc0b682ff510077f937d4d1487ca00
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs899759
milestone25.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 899759 - Bustage fix on a CLOSED TREE.
js/src/jsweakmap.cpp
--- a/js/src/jsweakmap.cpp
+++ b/js/src/jsweakmap.cpp
@@ -337,17 +337,17 @@ JS_NondeterministicGetWeakMapKeys(JSCont
         return true;
     }
     RootedObject arr(cx, NewDenseEmptyArray(cx));
     if (!arr)
         return false;
     ObjectValueMap *map = obj->as<WeakMapObject>().getMap();
     if (map) {
         // Prevent GC from mutating the weakmap while iterating.
-        AutoSuppressGC suppress(cx);
+        gc::AutoSuppressGC suppress(cx);
         for (ObjectValueMap::Base::Range r = map->all(); !r.empty(); r.popFront()) {
             RootedObject key(cx, r.front().key);
             if (!JS_WrapObject(cx, key.address()))
                 return false;
             if (!js_NewbornArrayPush(cx, arr, ObjectValue(*key)))
                 return false;
         }
     }