RFR: 8297936: Use reachabilityFence to manage liveness in ClassUnload tests [v2]
Coleen Phillimore
coleenp at openjdk.org
Wed Mar 1 12:55:06 UTC 2023
On Thu, 16 Feb 2023 09:26:05 GMT, Afshin Zafari <duke at openjdk.org> wrote:
>> ### Description
>> Instead of using static instances or using an object in print to keep it alive, `java.lang.ref.Reference.reachabilityFence(Object)` is used to keep an object alive and avoid class unloading.
>>
>> ### Tests
>> linux-x64-debug, macosx-aarch64-debug, mach5 tier1-5
>
> Afshin Zafari has updated the pull request incrementally with one additional commit since the last revision:
>
> 8297936: Use reachabilityFence to manage liveness in ClassUnload tests
Looks good. Thank you for fixing this!
-------------
Marked as reviewed by coleenp (Reviewer).
PR: https://git.openjdk.org/jdk/pull/12552
More information about the hotspot-runtime-dev
mailing list