This blocks testing of other fixes, so P1.
Example failure:
$ CONF=linux-x86_64-server-fastdebug make images run-test TEST=runtime/CompressedOops/CompressedClassPointers.java
...
[0.032s][trace][gc,metaspace] node @0x00007f1308180020: reserved=8192.00 KB, committed=0.00 KB ( 0%), used=0.00 KB ( 0%)
[0.032s][trace][gc,metaspace] [0x00007f12dc1e8000, 0x00007f12dc1e8000, 0x00007f12dc1e8000, 0x00007f12dc9e8000)
[0.032s][info ][gc,metaspace] CDS archive(s) mapped at: [0x0000000800000000-0x0000000800b9a000-0x0000000800b9a000), size 12165120, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
[0.032s][info ][gc,metaspace] Compressed class space mapped at: 0x0000000800b9c000-0x0000000840b9c000, size: 1073741824
[0.032s][info ][gc,metaspace] Narrow klass base: 0x0000000800000000, Narrow klass shift: 3, Narrow klass range: 0x100000000
[0.032s][info ][cds ] use_full_module_graph = true; java.base = 0x00000008004492f0
Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Module java.management is already defined
];
stderr: []
exitValue = 1
java.lang.RuntimeException: Expected to get exit value of [0]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:457)
at CompressedClassPointers.largePagesForHeapTest(CompressedClassPointers.java:120)
at CompressedClassPointers.main(CompressedClassPointers.java:313)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
at java.base/java.lang.Thread.run(Thread.java:832)
Bisection points to JDK-8244778:
03a4df0acd103702e52dcd01c3f03fda4d7b04f5 is the first bad commit
commit 03a4df0acd103702e52dcd01c3f03fda4d7b04f5
Author: Ioi Lam <iklam@openjdk.org>
Date: Sun Sep 13 14:45:12 2020 +0000
8244778: Archive full module graph in CDS
JDK-8253079 and JDK-8253081 are probably related.