-
CSR
-
Resolution: Approved
-
P4
-
behavioral
-
minimal
-
add/remove/modify command line option
-
Implementation
Summary
Change the default value of VerifySharedSpaces to always be false.
Problem
Currently, when starting the VM with -XX:SharedArchiveFile=, the value of VerifySharedSpaces changes from false (default CDS archives are not verified) to true. This has a significant startup cost, which undermines the intended purpose of using -XX:SharedArchiveFile / AppCDS, while not bringing any security benefits (if an attacker can tamper with the archive file we'll run, they can replace it completely with a version that will pass these integrity checks)
Solution
Remove the heuristic that sets VerifySharedSpaces to true when running with a user specified shared archive.
Specification
VerifySharedSpaces will be set to false in all configurations.
- csr of
-
JDK-8221478 Disable VerifySharedSpaces by default
-
- Resolved
-