201 unsafe_anonymous_host,
202 cp_patches,
203 ClassFileParser::BROADCAST, // publicity level
204 CHECK_NULL);
205
206 InstanceKlass* result = parser.create_instance_klass(old_stream != stream, CHECK_NULL);
207 assert(result == parser.create_instance_klass(old_stream != stream, THREAD), "invariant");
208
209 if (result == NULL) {
210 return NULL;
211 }
212
213 if (cached_class_file != NULL) {
214 // JVMTI: we have an InstanceKlass now, tell it about the cached bytes
215 result->set_cached_class_file(cached_class_file);
216 }
217
218 JFR_ONLY(ON_KLASS_CREATION(result, parser, THREAD);)
219
220 #if INCLUDE_CDS
221 if (DumpSharedSpaces || DynamicDumpSharedSpaces) {
222 ClassLoader::record_result(result, stream, THREAD);
223 }
224 #endif // INCLUDE_CDS
225
226 return result;
227 }
|
201 unsafe_anonymous_host,
202 cp_patches,
203 ClassFileParser::BROADCAST, // publicity level
204 CHECK_NULL);
205
206 InstanceKlass* result = parser.create_instance_klass(old_stream != stream, CHECK_NULL);
207 assert(result == parser.create_instance_klass(old_stream != stream, THREAD), "invariant");
208
209 if (result == NULL) {
210 return NULL;
211 }
212
213 if (cached_class_file != NULL) {
214 // JVMTI: we have an InstanceKlass now, tell it about the cached bytes
215 result->set_cached_class_file(cached_class_file);
216 }
217
218 JFR_ONLY(ON_KLASS_CREATION(result, parser, THREAD);)
219
220 #if INCLUDE_CDS
221 if (Arguments::is_dumping_archive()) {
222 ClassLoader::record_result(result, stream, THREAD);
223 }
224 #endif // INCLUDE_CDS
225
226 return result;
227 }
|