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/classfile/dictionary.cpp
          +++ new/hotspot/src/share/vm/classfile/dictionary.cpp
↓ open down ↓ 215 lines elided ↑ open up ↑
 216  216      for (DictionaryEntry** p = bucket_addr(index); *p != NULL; ) {
 217  217        probe = *p;
 218  218        InstanceKlass* ik = InstanceKlass::cast(probe->klass());
 219  219        if (ik->is_in_error_state()) { // purge this entry
 220  220          *p = probe->next();
 221  221          if (probe == _current_class_entry) {
 222  222            _current_class_entry = NULL;
 223  223          }
 224  224          free_entry(probe);
 225  225          ResourceMark rm;
 226      -        tty->print_cr("Removed error class: %s", ik->external_name());
      226 +        tty->print_cr("Preload Warning: Removed error class: %s", ik->external_name());
 227  227          continue;
 228  228        }
 229  229  
 230  230        p = probe->next_addr();
 231  231      }
 232  232    }
 233  233  }
 234  234  
 235  235  void Dictionary::always_strong_oops_do(OopClosure* blk) {
 236  236    // Follow all system classes and temporary placeholders in dictionary; only
↓ open down ↓ 544 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX