The following test fails when ran in CDS mode (with -Xshare:auto -showversion):
TEST: http://hg.openjdk.java.net/jdk/jdk10/file/tip/test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java
Failure: java.lang.RuntimeException: '[cds] Prohibited package for non-bootstrap classes: java/lang/Prohibited.class' missing from stdout/stderr
Was seen on both OL 7.3 and Ubuntu 16.04
Reproduce: always
1. $JDK_UNDER_TEST/bin/java -Xshare:dump
2. Then just run the test with these extra flags: "-Xshare:auto -showversion"
=========================== Details
stderr: []
exitValue = 0
java.lang.RuntimeException: '[cds] Prohibited package for non-bootstrap classes: java/lang/Prohibited.class' missing from stdout/stderr
^Iat jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:135)
^Iat ProhibitedPackage.main(ProhibitedPackage.java:60)
^Iat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
^Iat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
^Iat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
^Iat java.base/java.lang.reflect.Method.invoke(Method.java:564)
^Iat com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
^Iat java.base/java.lang.Thread.run(Thread.java:844)
TEST: http://hg.openjdk.java.net/jdk/jdk10/file/tip/test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java
Failure: java.lang.RuntimeException: '[cds] Prohibited package for non-bootstrap classes: java/lang/Prohibited.class' missing from stdout/stderr
Was seen on both OL 7.3 and Ubuntu 16.04
Reproduce: always
1. $JDK_UNDER_TEST/bin/java -Xshare:dump
2. Then just run the test with these extra flags: "-Xshare:auto -showversion"
=========================== Details
stderr: []
exitValue = 0
java.lang.RuntimeException: '[cds] Prohibited package for non-bootstrap classes: java/lang/Prohibited.class' missing from stdout/stderr
^Iat jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:135)
^Iat ProhibitedPackage.main(ProhibitedPackage.java:60)
^Iat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
^Iat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
^Iat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
^Iat java.base/java.lang.reflect.Method.invoke(Method.java:564)
^Iat com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
^Iat java.base/java.lang.Thread.run(Thread.java:844)