src/hotspot/share/classfile/systemDictionary.cpp
changeset 48138 78b2ecdd3c4b
parent 47991 a474466c4fdb
child 48514 9608f7f41c4e
equal deleted inserted replaced
48137:0afc5f9eafef 48138:78b2ecdd3c4b
  1085                                                      ClassFileStream* st,
  1085                                                      ClassFileStream* st,
  1086                                                      TRAPS) {
  1086                                                      TRAPS) {
  1087 #if INCLUDE_CDS
  1087 #if INCLUDE_CDS
  1088   ResourceMark rm(THREAD);
  1088   ResourceMark rm(THREAD);
  1089   if (DumpSharedSpaces && !class_loader.is_null() &&
  1089   if (DumpSharedSpaces && !class_loader.is_null() &&
  1090       !ArgumentsExt::using_AppCDS() && strcmp(class_name->as_C_string(), "Unnamed") != 0) {
  1090       !UseAppCDS && strcmp(class_name->as_C_string(), "Unnamed") != 0) {
  1091     // If AppCDS is not enabled, don't define the class at dump time (except for the "Unnamed"
  1091     // If AppCDS is not enabled, don't define the class at dump time (except for the "Unnamed"
  1092     // class, which is used by MethodHandles).
  1092     // class, which is used by MethodHandles).
  1093     THROW_MSG_NULL(vmSymbols::java_lang_ClassNotFoundException(), class_name->as_C_string());
  1093     THROW_MSG_NULL(vmSymbols::java_lang_ClassNotFoundException(), class_name->as_C_string());
  1094   }
  1094   }
  1095 #endif
  1095 #endif