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

Use reachabilityFence to manage liveness in ClassUnload tests

XMLWordPrintable

    • b13

        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`.

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

                Created:
                Updated:
                Resolved: