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

Use reachabilityFence to manage liveness in ClassUnload tests

    XMLWordPrintable

Details

    • b13

    Description

      In test/hotspot/jtreg/runtime/ClassUnload/:

      Some tests keep objects live by using either static fields (e.g. UnloadTest.java) or print (e.g. ConstantPoolDependsTest.java).

      A better solution, as suggested by David in https://github.com/openjdk/jdk/pull/11409, is to use `Reference.reachabilityFence`.

      Attachments

        Issue Links

          Activity

            People

              azafari Afshin Zafari
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: