equal
deleted
inserted
replaced
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 |