[11u] RFR: 8226406: JVM fails to detect mismatched or corrupt CDS archive

Lindenmaier, Goetz goetz.lindenmaier at sap.com
Tue Jan 28 15:06:11 UTC 2020


Hi

I would like to downport gthis change for parity with 11.0.7-oracle.

I had to do several adaptions of the change to get the code into 11u.

In filemap.cpp jdk13 distinguishes CDS_ARCHIVE_MAGIC and CDS_DYNAMIC_ARCHIVE_MAGIC. Also, 13 checks field _header_size which is not in 11.

I simplified this to check only for CDS_ARCHIVE_MAGIC which is known in 11. I removed the checks for _header_size.

The test too varies a lot between 11 and 13.

Ran it through our testing, and ran the test manually. Both passed.

http://cr.openjdk.java.net/~goetz/wr20/8226406-corrupt_CDS_archive-jdk11/01/

Best regards,
  Goetz


More information about the jdk-updates-dev mailing list