RFR: 8297740: runtime/ClassUnload/UnloadTest.java failed with "Test failed: should still be live"
Albert Mingkun Yang
ayang at openjdk.org
Wed Nov 30 09:01:22 UTC 2022
On Tue, 29 Nov 2022 10:43:42 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> Could an alternative be to print the object after the liveness check, but before the triggering of the class unloading?
That probably works as well. Actually both approaches (static-field and use-in-print) can be seen in existing tests:
test/hotspot/jtreg/runtime/ClassUnload/KeepAliveObject.java
test/hotspot/jtreg/runtime/ClassUnload/ConstantPoolDependsTest.java
I will keep the current approach because the intent is more explicit this way.
-------------
PR: https://git.openjdk.org/jdk/pull/11409
More information about the hotspot-runtime-dev
mailing list