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

Test for JDK-8165198 fails intermittently because of GC

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b31
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: