< prev index next >

core/org.openjdk.jmc.agent/src/main/java/org/openjdk/jmc/agent/jfr/impl/JFRClassVisitor.java

Print this page

        

@@ -78,10 +78,10 @@
                 super.visitEnd();
         }
 
         private Class<?> generateEventClass() throws Exception {
                 byte[] eventClass = JFREventClassGenerator.generateEventClass(transformDescriptor);
-                return TypeUtils.getUnsafe().defineClass(transformDescriptor.getEventClassName(), eventClass, 0,
+                return TypeUtils.defineClass(transformDescriptor.getEventClassName(), eventClass, 0,
                                 eventClass.length, definingClassLoader, protectionDomain);
         }
 
 }
< prev index next >