Print this page
rev 6905 : 8064375: Change certain errors to warnings in CDS output.
Summary: Change CDS non-fatal preloading errors to warnings.
Reviewed-by: minqi, mseledtsov, coleenp

Split Split Close
Expand all
Collapse all
          --- old/hotspot/src/share/vm/memory/metaspaceShared.cpp
          +++ new/hotspot/src/share/vm/memory/metaspaceShared.cpp
↓ open down ↓ 843 lines elided ↑ open up ↑
 844  844        // to load non-system classes during dumping, we need to temporarily
 845  845        // change BytecodeVerificationLocal to be the same as
 846  846        // BytecodeVerificationRemote. Note this can cause the parent system
 847  847        // classes also being verified. The extra overhead is acceptable during
 848  848        // dumping.
 849  849        BytecodeVerificationLocal = BytecodeVerificationRemote;
 850  850      }
 851  851      ik->link_class(THREAD);
 852  852      if (HAS_PENDING_EXCEPTION) {
 853  853        ResourceMark rm;
 854      -      tty->print_cr("Preload Error: Verification failed for %s",
      854 +      tty->print_cr("Preload Warning: Verification failed for %s",
 855  855                      ik->external_name());
 856  856        CLEAR_PENDING_EXCEPTION;
 857  857        ik->set_in_error_state();
 858  858        _has_error_classes = true;
 859  859      }
 860  860      BytecodeVerificationLocal = saved;
 861  861      return true;
 862  862    } else {
 863  863      return false;
 864  864    }
↓ open down ↓ 283 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX