Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8190427

Test for JDK-8165198 fails intermittently because of GC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 10
    • None
    • core-libs
    • 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 of JDK-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.

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: