< prev index next >

src/share/vm/classfile/classLoader.cpp

Print this page

        

@@ -1132,10 +1132,19 @@
       if (DumpSharedSpaces) {
         tty->print_cr("Preload Error: Failed to load %s", class_name);
       }
       return h;
     }
+
+#if INCLUDE_JFR
+  {
+    InstanceKlass* ik = result();
+    ON_KLASS_CREATION(ik, parser, THREAD);
+    result = instanceKlassHandle(ik);
+  }
+#endif
+
     h = context.record_result(classpath_index, e, result, THREAD);
   } else {
     if (DumpSharedSpaces) {
       tty->print_cr("Preload Warning: Cannot find %s", class_name);
     }
< prev index next >