Bug 1507322 - test deeply recursive weakmaps
authorSteve Fink <sfink@mozilla.com>
Wed, 16 Jan 2019 21:16:48 +0000
changeset 514141 a7bd4626ee6ed969a0b6efd3777a5f347c79007b
parent 514140 ef66755764d4c6cba370621b13b8a32a54eddeb4
child 514142 01b4a854bca1e24978a3846a43d87055b260a5af
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1507322
milestone66.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 1507322 - test deeply recursive weakmaps Differential Revision: https://phabricator.services.mozilla.com/D16738
js/src/tests/non262/regress/regress-1507322-deep-weakmap.js
new file mode 100644
--- /dev/null
+++ b/js/src/tests/non262/regress/regress-1507322-deep-weakmap.js
@@ -0,0 +1,11 @@
+function TestGC2(m) {
+  var head = new Object;
+  for (key = head, i = 0; i < 99999; i++, key = m.get(key)) {
+    m.set(key, new Object);
+  }
+  gc();
+  for (key = head; key != undefined; key = m.get(key)) {}
+}
+TestGC2(new WeakMap);
+
+reportCompare(true, true, "deep weakmaps");