< prev index next >

core/org.openjdk.jmc.agent/src/main/java/org/openjdk/jmc/agent/jfrnext/impl/JFRNextClassVisitor.java

Print this page

        

*** 85,93 **** registerMethod.invoke(null, generateEventClass); } private Class<?> generateEventClass() throws Exception { byte[] eventClass = JFRNextEventClassGenerator.generateEventClass(transformDescriptor); ! return TypeUtils.getUnsafe().defineClass(transformDescriptor.getEventClassName(), eventClass, 0, eventClass.length, definingClassLoader, protectionDomain); } } --- 85,93 ---- registerMethod.invoke(null, generateEventClass); } private Class<?> generateEventClass() throws Exception { byte[] eventClass = JFRNextEventClassGenerator.generateEventClass(transformDescriptor); ! return TypeUtils.defineClass(transformDescriptor.getEventClassName(), eventClass, 0, eventClass.length, definingClassLoader, protectionDomain); } }
< prev index next >