RFR: 8297740: runtime/ClassUnload/UnloadTest.java failed with "Test failed: should still be live" [v2]

David Holmes dholmes at openjdk.org
Thu Dec 1 00:45:26 UTC 2022


On Wed, 30 Nov 2022 09:01:21 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> Fix the failure in `-Xcomp` mode. Thanks to David's analysis that a local variable is not enough to keep the object live; using a global variable now.
>
> Albert Mingkun Yang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   review

I don't know why I didn't think about this sooner but the right way to deal with liveness issues is to use `Reference.reachabilityFence`.

-------------

PR: https://git.openjdk.org/jdk/pull/11409


More information about the hotspot-runtime-dev mailing list