@@ -1146,17 +1146,6 @@ void SystemDictionary::load_shared_class_misc(InstanceKlass* ik, ClassLoaderData
11461146 }
11471147}
11481148
1149- #if INCLUDE_JFR
1150- void SystemDictionary::post_class_load_event (EventClassLoad* event, const InstanceKlass* k, const ClassLoaderData* init_cld) {
1151- assert (event != nullptr , " invariant" );
1152- assert (k != nullptr , " invariant" );
1153- event->set_loadedClass (k);
1154- event->set_definingClassLoader (k->class_loader_data ());
1155- event->set_initiatingClassLoader (init_cld);
1156- event->commit ();
1157- }
1158- #endif // INCLUDE_JFR
1159-
11601149// This is much more lightweight than SystemDictionary::resolve_or_null
11611150// - There's only a single Java thread at this point. No need for placeholder.
11621151// - All supertypes of ik have been loaded
@@ -1217,6 +1206,17 @@ void SystemDictionary::preload_class(Handle class_loader, InstanceKlass* ik, TRA
12171206
12181207#endif // INCLUDE_CDS
12191208
1209+ #if INCLUDE_JFR
1210+ void SystemDictionary::post_class_load_event (EventClassLoad* event, const InstanceKlass* k, const ClassLoaderData* init_cld) {
1211+ assert (event != nullptr , " invariant" );
1212+ assert (k != nullptr , " invariant" );
1213+ event->set_loadedClass (k);
1214+ event->set_definingClassLoader (k->class_loader_data ());
1215+ event->set_initiatingClassLoader (init_cld);
1216+ event->commit ();
1217+ }
1218+ #endif // INCLUDE_JFR
1219+
12201220InstanceKlass* SystemDictionary::load_instance_class_impl (Symbol* class_name, Handle class_loader, TRAPS) {
12211221
12221222 if (class_loader.is_null ()) {
0 commit comments