author | Bill McCloskey <wmccloskey@mozilla.com> |
Wed, 31 Jul 2013 12:05:51 -0700 | |
changeset 140790 | 3ce7cb22607a9e8e7a79e7234e34093d255de144 |
parent 140789 | 50f69b500c020dc5397fbcd4ef8eca26d7d01c38 |
child 140819 | 60d17705f2fc0b682ff510077f937d4d1487ca00 |
push id | 31873 |
push user | wmccloskey@mozilla.com |
push date | Wed, 31 Jul 2013 19:08:13 +0000 |
treeherder | mozilla-inbound@3ce7cb22607a [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 899759 |
milestone | 25.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
|
--- 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; } }