The com/sun/jdi/ArrayLengthDumpTest.java test fails with ArrayIndexOutOfBoundsException when running on a JDK binary with existing CDS archive:
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at lib.jdb.Jdb$OutputHandler.get(Jdb.java:363)
at lib.jdb.Jdb.waitForPrompt(Jdb.java:247)
at lib.jdb.Jdb.command(Jdb.java:288)
at ArrayLengthDumpTest.runCases(ArrayLengthDumpTest.java:96)
at lib.jdb.JdbTest.run(JdbTest.java:50)
at ArrayLengthDumpTest.main(ArrayLengthDumpTest.java:82)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:834)