- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    13, 14
- 
        b27
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8226545 | 14 | Erik Joelsson | P3 | Resolved | Fixed | b03 | 
| JDK-8228231 | 13.0.2 | Erik Joelsson | P3 | Resolved | Fixed | b01 | 
| JDK-8228016 | 13.0.1 | Erik Joelsson | P3 | Resolved | Fixed | master | 
                    During the JDK build process, it creates a CDS archive for the BOOT_JDK in configure-support/classes.jsa. The intent is improve the speed of running Java programs using the BOOT_JDK.
http://hg.openjdk.java.net/jdk/jdk/file/d57d61aafef9/make/autoconf/boot-jdk.m4#l362
Examples of such Java programs include TOOL_COMPILEPROPS_CMD
http://hg.openjdk.java.net/jdk/jdk/file/d57d61aafef9/make/gensrc/GensrcCommonLangtools.gmk#l94
However, when doing the bootcycle build (make bootcycle-images), some of these programs are executed using the JDK that we just built, but we still use the configure-support/classes.jsa file that was created by the BOOT_JDK.
In some cases, e.g., when BOOT_JDK is 64-bit but we are doing a bootcycle build of a 32-bit JDK, due to a bug in the CDS code where it cannot handle mismatched JSA files, the build will fail.
See http://mail.openjdk.java.net/pipermail/hotspot-dev/2019-June/038514.html for an example failure (and hs_err_pid22840.log in attachment).
            
http://hg.openjdk.java.net/jdk/jdk/file/d57d61aafef9/make/autoconf/boot-jdk.m4#l362
Examples of such Java programs include TOOL_COMPILEPROPS_CMD
http://hg.openjdk.java.net/jdk/jdk/file/d57d61aafef9/make/gensrc/GensrcCommonLangtools.gmk#l94
However, when doing the bootcycle build (make bootcycle-images), some of these programs are executed using the JDK that we just built, but we still use the configure-support/classes.jsa file that was created by the BOOT_JDK.
In some cases, e.g., when BOOT_JDK is 64-bit but we are doing a bootcycle build of a 32-bit JDK, due to a bug in the CDS code where it cannot handle mismatched JSA files, the build will fail.
See http://mail.openjdk.java.net/pipermail/hotspot-dev/2019-June/038514.html for an example failure (and hs_err_pid22840.log in attachment).
- backported by
- 
                    JDK-8226545 bootcycle build uses wrong CDS archive -           
- Resolved
 
-         
- 
                    JDK-8228016 bootcycle build uses wrong CDS archive -           
- Resolved
 
-         
- 
                    JDK-8228231 bootcycle build uses wrong CDS archive -           
- Resolved
 
-         
- relates to
- 
                    JDK-8226406 JVM fails to detect mismatched or corrupt CDS archive -           
- Resolved
 
-