mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
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:
parent
278672706d
commit
894e8c6479
3 changed files with 32 additions and 12 deletions
|
@ -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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue