Integrated: 8297936: Use reachabilityFence to manage liveness in ClassUnload tests
Afshin Zafari
duke at openjdk.org
Fri Mar 3 16:48:08 UTC 2023
On Tue, 14 Feb 2023 09:02:09 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
This pull request has now been integrated.
Changeset: 5085bd5f
Author: Afshin Zafari <Afshin.zafari at oracle.com>
Committer: Jesper Wilhelmsson <jwilhelm at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5085bd5f05ca70e08c6764ed208d574c556b6c57
Stats: 23 lines in 3 files changed: 9 ins; 5 del; 9 mod
8297936: Use reachabilityFence to manage liveness in ClassUnload tests
Reviewed-by: coleenp, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/12552
More information about the hotspot-runtime-dev
mailing list