RFR: 8278131: runtime/cds/appcds/dynamicArchive/* tests failing in loom repo
David Holmes
dholmes at openjdk.java.net
Wed Dec 15 01:43:58 UTC 2021
On Tue, 14 Dec 2021 23:14:38 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
> A few dynamic archive CDS tests are failing in the loom repo due to more aggressive GC of code cache
> which leads to unloading of some classes before being written into a dynamic CDS archive.
>
> This change is to make the affected tests more reliable by ensuring the test classes are not unloaded
> during dynamic CDS dump time.
>
> Testing: Oracle CI tiers 1,2,4.
Sorry but this isn't making any sense to me. You can't GC a class until its classloader becomes unreachable - at which point the classloader and all its loaded classes become unreachable together. So you can't keep a class alive by storing a reference to it in a static field of a class loaded by the same classloader - it was already kept alive.
David
-------------
PR: https://git.openjdk.java.net/jdk/pull/6843
More information about the hotspot-runtime-dev
mailing list