Test for JDK-8165198 fails intermittently because of GC

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 10
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: