@@ -390,7 +390,7 @@ static void rewrite_nofast_bytecode(const methodHandle& method) {
390
390
void MetaspaceShared::rewrite_nofast_bytecodes_and_calculate_fingerprints (Thread* thread, InstanceKlass* ik) {
391
391
for (int i = 0 ; i < ik->methods ()->length (); i++) {
392
392
methodHandle m (thread, ik->methods ()->at (i));
393
- if (!ik->has_old_class_version ()) {
393
+ if (!ik->can_be_verified_at_dumptime ()) {
394
394
rewrite_nofast_bytecode (m);
395
395
}
396
396
Fingerprinter fp (m);
@@ -580,7 +580,7 @@ class CollectCLDClosure : public CLDClosure {
580
580
bool MetaspaceShared::linking_required (InstanceKlass* ik) {
581
581
// For static CDS dump, do not link old classes.
582
582
// For dynamic CDS dump, only link classes loaded by the builtin class loaders.
583
- return DumpSharedSpaces ? !ik->has_old_class_version () : !ik->is_shared_unregistered_class ();
583
+ return DumpSharedSpaces ? !ik->can_be_verified_at_dumptime () : !ik->is_shared_unregistered_class ();
584
584
}
585
585
586
586
bool MetaspaceShared::link_class_for_cds (InstanceKlass* ik, TRAPS) {
@@ -756,7 +756,7 @@ bool MetaspaceShared::try_link_class(JavaThread* current, InstanceKlass* ik) {
756
756
ExceptionMark em (current);
757
757
JavaThread* THREAD = current; // For exception macros.
758
758
Arguments::assert_is_dumping_archive ();
759
- if (ik->is_loaded () && !ik->is_linked () && !ik->has_old_class_version () &&
759
+ if (ik->is_loaded () && !ik->is_linked () && !ik->can_be_verified_at_dumptime () &&
760
760
!SystemDictionaryShared::has_class_failed_verification (ik)) {
761
761
bool saved = BytecodeVerificationLocal;
762
762
if (ik->is_shared_unregistered_class () && ik->class_loader () == NULL ) {
0 commit comments