Created attachment 580188 [details] [diff] [review]
Use findReferences instead of countHeap to make js1_8/extensions/regress-422269.js fail less randomly.
The SpiderMonkey test js/src/tests/js1_8/extensions/regress-422269.js fails
randomly, because it requires a certain object to be garbage-collected to
pass. With a conservative stack scanner, an object being retained is not
necessarily a bug, and in general, the engine makes no promises about which
objects it retains and which it doesn't.
edges referring to the object, and filter out ones we know to be benign.
This patch changes the test to use findReferences.