Integrated: 8344822: CDS BulkLoaderTest.java#dynamic fails with COH

Ioi Lam iklam at openjdk.org
Thu Nov 28 01:23:53 UTC 2024


On Wed, 27 Nov 2024 00:31:49 GMT, Ioi Lam <iklam at openjdk.org> wrote:

> Creating a dynamic CDS archive (with `-XX:ArchiveClassesAtExit=<foo>.jsa`) requires that the current JVM process is using a static archive (which is usually the default CDS archive included in the JDK). The tests fails because the JVM is executed with `-XX:+UseCompactObjectHeaders`, but the JDK doesn't include a default CDS archive that's compatible with such VM options.
> 
> The fix is to detect for this situation, and create a temporary static archive to be used by the test.
> 
> Unfortunately this detection requires WhiteBox, so all test cases that use `CDSAppTester` with `@run ... DYNAMIC` need to be modified to add the appropriate jtreg tags.

This pull request has now been integrated.

Changeset: 8485cb1c
Author:    Ioi Lam <iklam at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8485cb1ca1fa4885ddaf8381ebf862bbb233f090
Stats:     43 lines in 3 files changed: 37 ins; 1 del; 5 mod

8344822: CDS BulkLoaderTest.java#dynamic fails with COH

Reviewed-by: dholmes, ccheung

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

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


More information about the hotspot-runtime-dev mailing list