RFR: 8366420: AOTMapTest fails when jsa is missing

Ioi Lam iklam at openjdk.org
Mon Sep 1 17:20:41 UTC 2025


On Mon, 1 Sep 2025 10:14:40 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > With the current fix, I think the test will fail if you run it with -vmoptions:-XX:-UseCompressedOops using your JDK
> 
> The test has `vm.flagless` set , so would it be skipped in this case ?

I think `vm.flagless` should also be removed. The contents of the AOT cache will be different depending on certain VM flags (e.g., GC flags), so running this test with flag rotation may provide better coverage.

(The test test/hotspot/jtreg/runtime/cds/CDSMapTest.java didn't have  `vm.flagless` until recently (when I added AOTMapTest.java), so I think we should also remove `vm.flagless` from CDSMapTest.java as well.

> > remove the compressed parameter to the AOTMapTest.doTest() function
> 
> okay why not ; would compressed == true be the remaining default case then ?

We should remove all use of the `compressed` variable, including this code:


            if (Platform.is64bit()) {
                // These options are available only on 64-bit.
                String sign = (compressed) ?  "+" : "-";
                vmArgs.add("-XX:" + sign + "UseCompressedOops");
            }


And let `UseCompressedOops` be decided by VM default and jtreg `-vmoptions`. So yes, by default this test will (implicitly) run with compressed oops.

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

PR Comment: https://git.openjdk.org/jdk/pull/27001#issuecomment-3242959524
PR Comment: https://git.openjdk.org/jdk/pull/27001#issuecomment-3242962992


More information about the hotspot-runtime-dev mailing list