8197972: Always verify non-system classes during CDS dump time

Use -Verify:remote even if the user specifies -Xverify:none during CDS dump time

Reviewed-by: iklam, mseledtsov, jiangli
This commit is contained in:
Calvin Cheung 2018-04-17 16:19:48 -07:00
parent 278672706d
commit 894e8c6479
3 changed files with 32 additions and 12 deletions

View file

@ -3376,6 +3376,12 @@ jint Arguments::finalize_vm_init_args(bool patch_mod_javabase) {
// Disable biased locking now as it interferes with the clean up of
// the archived Klasses and Java string objects (at dump time only).
UseBiasedLocking = false;
// Always verify non-system classes during CDS dump
if (!BytecodeVerificationRemote) {
BytecodeVerificationRemote = true;
log_info(cds)("All non-system classes will be verified (-Xverify:remote) during CDS dump time.");
}
}
if (UseSharedSpaces && patch_mod_javabase) {
no_shared_spaces("CDS is disabled when " JAVA_BASE_NAME " module is patched.");