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/classLoader.cpp
          +++ new/hotspot/src/share/vm/classfile/classLoader.cpp
↓ open down ↓ 1129 lines elided ↑ open up ↑
1130 1130      if (HAS_PENDING_EXCEPTION) {
1131 1131        ResourceMark rm;
1132 1132        if (DumpSharedSpaces) {
1133 1133          tty->print_cr("Preload Error: Failed to load %s", class_name);
1134 1134        }
1135 1135        return h;
1136 1136      }
1137 1137      h = context.record_result(classpath_index, e, result, THREAD);
1138 1138    } else {
1139 1139      if (DumpSharedSpaces) {
1140      -      tty->print_cr("Preload Error: Cannot find %s", class_name);
     1140 +      tty->print_cr("Preload Warning: Cannot find %s", class_name);
1141 1141      }
1142 1142    }
1143 1143  
1144 1144    return h;
1145 1145  }
1146 1146  
1147 1147  
1148 1148  void ClassLoader::create_package_info_table(HashtableBucket<mtClass> *t, int length,
1149 1149                                              int number_of_entries) {
1150 1150    assert(_package_hash_table == NULL, "One package info table allowed.");
↓ open down ↓ 566 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX