-
Enhancement
-
Resolution: Fixed
-
P4
-
20
-
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`.
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`.
- relates to
-
JDK-8297740 runtime/ClassUnload/UnloadTest.java failed with "Test failed: should still be live"
-
- Resolved
-