-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b31
-
generic
-
generic
Test test/nashorn/script/nosecurity/JDK-8165198.js fails intermittently because we use a WeakHashMap in PropertyListeners to register listeners. The thinking behind this was that target PropertyMaps are bound to map guards and so should be around as long as the call site exists.
However, in the case ofJDK-8165198, we're creating an additional switchpoint for the scope of the WithObject. The WithObject or its property map is not itself part of the callsite, so the map may be GCed and the switchpoint listener is lost.
However, in the case of