RFR[XS] 8191374 Improve error message when CDS is not supported on exploded build

Ioi Lam ioi.lam at oracle.com
Thu Dec 14 22:30:01 UTC 2017

Hi, please review this very simple fix for JDK 11:


Summary - the error message is changed to be more obvious what's going on.

Testing: since we don't have automated tests for exploded builds, I just 
did some
manually testing on Linux using the "exploded build", ./jdk/bin/java, 
which is an
intermediate file created by the JDK build system.


     $ ./jdk/bin/java -Xshare:dump
     Error: non-empty directory '/jdk/bld/opencds/jdk/modules/java.base'
     Hint: enable -Xlog:class+path=info to diagnose the failure
     Error occurred during initialization of VM
     CDS allows only empty directories in archived classpaths


     $ ./jdk/bin/java -Xshare:dump
     Error occurred during initialization of VM
     CDS is not supported in exploded JDK build

- Ioi

More information about the hotspot-runtime-dev mailing list