final class jdk.jfr.internal.EventHandlerCreator
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.EventHandlerCreator
super_class: java.lang.Object
{
private static final int CLASS_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 52
private static final java.lang.String SUFFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String FIELD_EVENT_TYPE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "platformEventType"
private static final java.lang.String FIELD_PREFIX_STRING_POOL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "stringPool"
private static final jdk.internal.org.objectweb.asm.Type TYPE_STRING_POOL;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.Type TYPE_EVENT_WRITER;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.Type TYPE_PLATFORM_EVENT_TYPE;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.Type TYPE_EVENT_HANDLER;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.Type TYPE_SETTING_CONTROL;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.Type TYPE_EVENT_TYPE;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.Type TYPE_EVENT_CONTROL;
descriptor: Ljdk/internal/org/objectweb/asm/Type;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String DESCRIPTOR_EVENT_HANDLER;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.commons.Method METHOD_GET_EVENT_WRITER;
descriptor: Ljdk/internal/org/objectweb/asm/commons/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.commons.Method METHOD_EVENT_HANDLER_CONSTRUCTOR;
descriptor: Ljdk/internal/org/objectweb/asm/commons/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.org.objectweb.asm.commons.Method METHOD_RESET;
descriptor: Ljdk/internal/org/objectweb/asm/commons/Method;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final jdk.internal.org.objectweb.asm.ClassWriter classWriter;
descriptor: Ljdk/internal/org/objectweb/asm/ClassWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String className;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String internalClassName;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.List<jdk.jfr.internal.EventInstrumentation$SettingInfo> settingInfos;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;
private final java.util.List<jdk.jfr.internal.EventInstrumentation$FieldInfo> fields;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$FieldInfo;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc "_"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic java.lang.System.currentTimeMillis:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.getPid:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic jdk.jfr.internal.EventHandlerCreator.SUFFIX:Ljava/lang/String;
1: ldc Ljdk/jfr/internal/StringPool;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_STRING_POOL:Ljdk/internal/org/objectweb/asm/Type;
2: ldc Ljdk/jfr/internal/EventWriter;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
3: ldc Ljdk/jfr/internal/PlatformEventType;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_PLATFORM_EVENT_TYPE:Ljdk/internal/org/objectweb/asm/Type;
4: ldc Ljdk/jfr/internal/handlers/EventHandler;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_HANDLER:Ljdk/internal/org/objectweb/asm/Type;
5: ldc Ljdk/jfr/SettingControl;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_SETTING_CONTROL:Ljdk/internal/org/objectweb/asm/Type;
6: ldc Ljdk/jfr/EventType;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_TYPE:Ljdk/internal/org/objectweb/asm/Type;
7: ldc Ljdk/jfr/internal/EventControl;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
putstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_CONTROL:Ljdk/internal/org/objectweb/asm/Type;
8: new java.lang.StringBuilder
dup
ldc "("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic jdk.internal.org.objectweb.asm.Type.BOOLEAN_TYPE:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_TYPE:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_CONTROL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")V"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putstatic jdk.jfr.internal.EventHandlerCreator.DESCRIPTOR_EVENT_HANDLER:Ljava/lang/String;
9: new jdk.internal.org.objectweb.asm.commons.Method
dup
ldc "getEventWriter"
new java.lang.StringBuilder
dup
ldc "()"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial jdk.internal.org.objectweb.asm.commons.Method.<init>:(Ljava/lang/String;Ljava/lang/String;)V
putstatic jdk.jfr.internal.EventHandlerCreator.METHOD_GET_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/commons/Method;
10: new jdk.internal.org.objectweb.asm.commons.Method
dup
ldc "<init>"
getstatic jdk.jfr.internal.EventHandlerCreator.DESCRIPTOR_EVENT_HANDLER:Ljava/lang/String;
invokespecial jdk.internal.org.objectweb.asm.commons.Method.<init>:(Ljava/lang/String;Ljava/lang/String;)V
putstatic jdk.jfr.internal.EventHandlerCreator.METHOD_EVENT_HANDLER_CONSTRUCTOR:Ljdk/internal/org/objectweb/asm/commons/Method;
11: new jdk.internal.org.objectweb.asm.commons.Method
dup
ldc "reset"
ldc "()V"
invokespecial jdk.internal.org.objectweb.asm.commons.Method.<init>:(Ljava/lang/String;Ljava/lang/String;)V
putstatic jdk.jfr.internal.EventHandlerCreator.METHOD_RESET:Ljdk/internal/org/objectweb/asm/commons/Method;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(long, java.util.List<jdk.jfr.internal.EventInstrumentation$SettingInfo>, java.util.List<jdk.jfr.internal.EventInstrumentation$FieldInfo>);
descriptor: (JLjava/util/List;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.internal.org.objectweb.asm.ClassWriter
dup
iconst_3
invokespecial jdk.internal.org.objectweb.asm.ClassWriter.<init>:(I)V
putfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
2: aload 0
lload 1
invokestatic jdk.jfr.internal.EventHandlerCreator.makeEventHandlerName:(J)Ljava/lang/String;
putfield jdk.jfr.internal.EventHandlerCreator.className:Ljava/lang/String;
3: aload 0
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.className:Ljava/lang/String;
invokestatic jdk.jfr.internal.ASMToolkit.getInternalName:(Ljava/lang/String;)Ljava/lang/String;
putfield jdk.jfr.internal.EventHandlerCreator.internalClassName:Ljava/lang/String;
4: aload 0
aload 3
putfield jdk.jfr.internal.EventHandlerCreator.settingInfos:Ljava/util/List;
5: aload 0
aload 4
putfield jdk.jfr.internal.EventHandlerCreator.fields:Ljava/util/List;
6: return
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/EventHandlerCreator;
0 7 1 id J
0 7 3 settingInfos Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;
0 7 4 fields Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$FieldInfo;>;
Signature: (JLjava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$FieldInfo;>;)V
MethodParameters:
Name Flags
id
settingInfos
fields
public static java.lang.String makeEventHandlerName(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc Ljdk/jfr/internal/handlers/EventHandler;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 0
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
getstatic jdk.jfr.internal.EventHandlerCreator.SUFFIX:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 id J
MethodParameters:
Name Flags
id
public void <init>(long, java.util.List<jdk.jfr.internal.EventInstrumentation$SettingInfo>, jdk.jfr.EventType, java.lang.Class<? extends jdk.internal.event.Event>);
descriptor: (JLjava/util/List;Ljdk/jfr/EventType;Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: aload 0
lload 1
aload 3
aload 5
aload 4
invokestatic jdk.jfr.internal.EventHandlerCreator.createFieldInfos:(Ljava/lang/Class;Ljdk/jfr/EventType;)Ljava/util/List;
invokespecial jdk.jfr.internal.EventHandlerCreator.<init>:(JLjava/util/List;Ljava/util/List;)V
1: return
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/EventHandlerCreator;
0 2 1 id J
0 2 3 settingInfos Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;
0 2 4 type Ljdk/jfr/EventType;
0 2 5 eventClass Ljava/lang/Class<+Ljdk/internal/event/Event;>;
Signature: (JLjava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;Ljdk/jfr/EventType;Ljava/lang/Class<+Ljdk/internal/event/Event;>;)V
MethodParameters:
Name Flags
id
settingInfos
type
eventClass
private static java.util.List<jdk.jfr.internal.EventInstrumentation$FieldInfo> createFieldInfos(java.lang.Class<? extends jdk.internal.event.Event>, jdk.jfr.EventType);
descriptor: (Ljava/lang/Class;Ljdk/jfr/EventType;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=10, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 1
invokevirtual jdk.jfr.EventType.getFields:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 20
StackMap locals: java.lang.Class jdk.jfr.EventType java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.ValueDescriptor
astore 3
start local 3 3: aload 3
getstatic jdk.jfr.internal.TypeLibrary.STACK_TRACE_FIELD:Ljdk/jfr/ValueDescriptor;
if_acmpeq 20
aload 3
getstatic jdk.jfr.internal.TypeLibrary.THREAD_FIELD:Ljdk/jfr/ValueDescriptor;
if_acmpeq 20
4: invokestatic jdk.jfr.internal.PrivateAccess.getInstance:()Ljdk/jfr/internal/PrivateAccess;
aload 3
invokevirtual jdk.jfr.internal.PrivateAccess.getFieldName:(Ljdk/jfr/ValueDescriptor;)Ljava/lang/String;
astore 5
start local 5 5: aload 3
invokevirtual jdk.jfr.ValueDescriptor.getTypeName:()Ljava/lang/String;
invokestatic jdk.jfr.internal.ASMToolkit.getDescriptor:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 6: aload 0
astore 7
start local 7 7: aconst_null
astore 8
start local 8 8: goto 15
9: StackMap locals: java.lang.Class jdk.jfr.EventType java.util.List jdk.jfr.ValueDescriptor java.util.Iterator java.lang.String java.lang.String java.lang.Class java.lang.String
StackMap stack:
aload 7
aload 5
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 9
start local 9 10: aload 7
aload 0
if_acmpeq 11
aload 9
invokevirtual java.lang.reflect.Field.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPrivate:(I)Z
ifne 14
11: StackMap locals: java.lang.reflect.Field
StackMap stack:
aload 7
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic jdk.jfr.internal.ASMToolkit.getInternalName:(Ljava/lang/String;)Ljava/lang/String;
astore 8
12: goto 16
end local 9 13: StackMap locals: java.lang.Class jdk.jfr.EventType java.util.List jdk.jfr.ValueDescriptor java.util.Iterator java.lang.String java.lang.String java.lang.Class java.lang.String
StackMap stack: java.lang.Exception
pop
14: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 7
15: StackMap locals:
StackMap stack:
aload 7
ldc Ljdk/jfr/Event;
if_acmpne 9
16: StackMap locals:
StackMap stack:
aload 8
ifnull 19
17: aload 2
new jdk.jfr.internal.EventInstrumentation$FieldInfo
dup
aload 5
aload 6
aload 8
invokespecial jdk.jfr.internal.EventInstrumentation$FieldInfo.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
18: goto 20
19: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Could not locate field "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " for event type"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 8 end local 7 end local 6 end local 5 end local 3 20: StackMap locals: java.lang.Class jdk.jfr.EventType java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
21: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 eventClass Ljava/lang/Class<+Ljdk/internal/event/Event;>;
0 22 1 type Ljdk/jfr/EventType;
1 22 2 fieldInfos Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$FieldInfo;>;
3 20 3 v Ljdk/jfr/ValueDescriptor;
5 20 5 fieldName Ljava/lang/String;
6 20 6 fieldDescriptor Ljava/lang/String;
7 20 7 c Ljava/lang/Class<*>;
8 20 8 internalName Ljava/lang/String;
10 13 9 field Ljava/lang/reflect/Field;
Exception table:
from to target type
9 12 13 Class java.lang.NoSuchFieldException
9 12 13 Class java.lang.SecurityException
Exceptions:
throws java.lang.Error
Signature: (Ljava/lang/Class<+Ljdk/internal/event/Event;>;Ljdk/jfr/EventType;)Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$FieldInfo;>;
MethodParameters:
Name Flags
eventClass
type
public java.lang.Class<? extends jdk.jfr.internal.handlers.EventHandler> makeEventHandlerClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jfr.internal.EventHandlerCreator.buildClassInfo:()V
1: aload 0
invokevirtual jdk.jfr.internal.EventHandlerCreator.buildConstructor:()V
2: aload 0
invokevirtual jdk.jfr.internal.EventHandlerCreator.buildWriteMethod:()V
3: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.toByteArray:()[B
astore 1
start local 1 4: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.className:Ljava/lang/String;
aload 1
invokestatic jdk.jfr.internal.ASMToolkit.logASM:(Ljava/lang/String;[B)V
5: ldc Ljdk/jfr/internal/handlers/EventHandler;
aload 1
invokestatic jdk.jfr.internal.SecuritySupport.defineClass:(Ljava/lang/Class;[B)Ljava/lang/Class;
ldc Ljdk/jfr/internal/handlers/EventHandler;
invokevirtual java.lang.Class.asSubclass:(Ljava/lang/Class;)Ljava/lang/Class;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/jfr/internal/EventHandlerCreator;
4 6 1 bytes [B
Signature: ()Ljava/lang/Class<+Ljdk/jfr/internal/handlers/EventHandler;>;
public static jdk.jfr.internal.handlers.EventHandler instantiateEventHandler(java.lang.Class<? extends jdk.jfr.internal.handlers.EventHandler>, boolean, jdk.jfr.EventType, jdk.jfr.internal.EventControl);
descriptor: (Ljava/lang/Class;ZLjdk/jfr/EventType;Ljdk/jfr/internal/EventControl;)Ljdk/jfr/internal/handlers/EventHandler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual java.lang.Class.getDeclaredConstructors:()[Ljava/lang/reflect/Constructor;
iconst_0
aaload
astore 4
start local 4 1: goto 4
end local 4 StackMap locals:
StackMap stack: java.lang.Exception
2: astore 5
start local 5 3: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Could not get handler constructor for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.InternalError.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.lang.Error
athrow
end local 5 start local 4 4: StackMap locals: java.lang.reflect.Constructor
StackMap stack:
aload 4
invokestatic jdk.jfr.internal.SecuritySupport.setAccessible:(Ljava/lang/reflect/Constructor;)V
5: aload 3
invokevirtual jdk.jfr.internal.EventControl.getSettingInfos:()Ljava/util/List;
astore 5
start local 5 6: iconst_3
aload 5
invokeinterface java.util.List.size:()I
iadd
anewarray java.lang.Object
astore 6
start local 6 7: aload 6
iconst_0
iload 1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
8: aload 6
iconst_1
aload 2
aastore
9: aload 6
iconst_2
aload 3
aastore
10: aload 5
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 13
StackMap locals: java.lang.Class int jdk.jfr.EventType jdk.jfr.internal.EventControl java.lang.reflect.Constructor java.util.List java.lang.Object[] top java.util.Iterator
StackMap stack:
11: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventInstrumentation$SettingInfo
astore 7
start local 7 12: aload 6
aload 7
getfield jdk.jfr.internal.EventInstrumentation$SettingInfo.index:I
iconst_3
iadd
aload 7
getfield jdk.jfr.internal.EventInstrumentation$SettingInfo.settingControl:Ljdk/jfr/SettingControl;
aastore
end local 7 13: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
14: aload 4
aload 6
invokevirtual java.lang.reflect.Constructor.newInstance:([Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jfr.internal.handlers.EventHandler
15: areturn
end local 6 end local 5 16: StackMap locals: java.lang.Class int jdk.jfr.EventType jdk.jfr.internal.EventControl java.lang.reflect.Constructor
StackMap stack: java.lang.Exception
astore 5
start local 5 17: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Could not instantiate event handler for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual jdk.jfr.EventType.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ". "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.InternalError.initCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
checkcast java.lang.Error
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 handlerClass Ljava/lang/Class<+Ljdk/jfr/internal/handlers/EventHandler;>;
0 18 1 registered Z
0 18 2 eventType Ljdk/jfr/EventType;
0 18 3 eventControl Ljdk/jfr/internal/EventControl;
1 2 4 cc Ljava/lang/reflect/Constructor<*>;
4 18 4 cc Ljava/lang/reflect/Constructor<*>;
3 4 5 e Ljava/lang/Exception;
6 16 5 settingInfos Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;
7 16 6 arguments [Ljava/lang/Object;
12 13 7 si Ljdk/jfr/internal/EventInstrumentation$SettingInfo;
17 18 5 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
5 15 16 Class java.lang.InstantiationException
5 15 16 Class java.lang.IllegalAccessException
5 15 16 Class java.lang.IllegalArgumentException
5 15 16 Class java.lang.reflect.InvocationTargetException
Exceptions:
throws java.lang.Error
Signature: (Ljava/lang/Class<+Ljdk/jfr/internal/handlers/EventHandler;>;ZLjdk/jfr/EventType;Ljdk/jfr/internal/EventControl;)Ljdk/jfr/internal/handlers/EventHandler;
MethodParameters:
Name Flags
handlerClass
registered
eventType
eventControl
private void buildConstructor();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
iconst_2
getstatic jdk.jfr.internal.EventHandlerCreator.METHOD_EVENT_HANDLER_CONSTRUCTOR:Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getName:()Ljava/lang/String;
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.settingInfos:Ljava/util/List;
invokestatic jdk.jfr.internal.EventHandlerCreator.makeConstructorDescriptor:(Ljava/util/List;)Ljava/lang/String;
aconst_null
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.visitMethod:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/MethodVisitor;
astore 1
start local 1 1: aload 1
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
2: aload 1
bipush 21
iconst_1
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
3: aload 1
bipush 25
iconst_2
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
4: aload 1
bipush 25
iconst_3
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
5: aload 1
sipush 183
ldc Ljdk/jfr/internal/handlers/EventHandler;
invokestatic jdk.internal.org.objectweb.asm.Type.getInternalName:(Ljava/lang/Class;)Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.METHOD_EVENT_HANDLER_CONSTRUCTOR:Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getName:()Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.METHOD_EVENT_HANDLER_CONSTRUCTOR:Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getDescriptor:()Ljava/lang/String;
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
6: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.settingInfos:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 11
StackMap locals: jdk.jfr.internal.EventHandlerCreator jdk.internal.org.objectweb.asm.MethodVisitor top java.util.Iterator
StackMap stack:
7: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventInstrumentation$SettingInfo
astore 2
start local 2 8: aload 1
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
9: aload 1
bipush 25
aload 2
getfield jdk.jfr.internal.EventInstrumentation$SettingInfo.index:I
iconst_4
iadd
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
10: aload 1
sipush 181
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.internalClassName:Ljava/lang/String;
aload 2
getfield jdk.jfr.internal.EventInstrumentation$SettingInfo.fieldName:Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_SETTING_CONTROL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFieldInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
end local 2 11: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
12: iconst_0
istore 2
start local 2 13: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.fields:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 21
StackMap locals: jdk.jfr.internal.EventHandlerCreator jdk.internal.org.objectweb.asm.MethodVisitor int top java.util.Iterator
StackMap stack:
14: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventInstrumentation$FieldInfo
astore 3
start local 3 15: aload 3
invokevirtual jdk.jfr.internal.EventInstrumentation$FieldInfo.isString:()Z
ifeq 20
16: aload 1
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
17: aload 1
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
18: aload 1
sipush 182
ldc Ljdk/jfr/internal/handlers/EventHandler;
invokestatic jdk.internal.org.objectweb.asm.Type.getInternalName:(Ljava/lang/Class;)Ljava/lang/String;
ldc "createStringFieldWriter"
new java.lang.StringBuilder
dup
ldc "()"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_STRING_POOL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
19: aload 1
sipush 181
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.internalClassName:Ljava/lang/String;
new java.lang.StringBuilder
dup
ldc "stringPool"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_STRING_POOL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFieldInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
20: StackMap locals: jdk.jfr.internal.EventHandlerCreator jdk.internal.org.objectweb.asm.MethodVisitor int jdk.jfr.internal.EventInstrumentation$FieldInfo java.util.Iterator
StackMap stack:
iinc 2 1
end local 3 21: StackMap locals: jdk.jfr.internal.EventHandlerCreator jdk.internal.org.objectweb.asm.MethodVisitor int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
22: aload 1
sipush 177
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
23: aload 1
iconst_0
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMaxs:(II)V
24: aload 1
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitEnd:()V
25: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/jfr/internal/EventHandlerCreator;
1 26 1 mv Ljdk/internal/org/objectweb/asm/MethodVisitor;
8 11 2 si Ljdk/jfr/internal/EventInstrumentation$SettingInfo;
13 26 2 fieldIndex I
15 21 3 field Ljdk/jfr/internal/EventInstrumentation$FieldInfo;
private void buildClassInfo();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=1
start local 0 0: ldc Ljdk/jfr/internal/handlers/EventHandler;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic jdk.jfr.internal.ASMToolkit.getInternalName:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
bipush 52
bipush 49
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.internalClassName:Ljava/lang/String;
aconst_null
aload 1
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.visit:(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
2: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.settingInfos:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: jdk.jfr.internal.EventHandlerCreator java.lang.String top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventInstrumentation$SettingInfo
astore 2
start local 2 4: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
bipush 17
aload 2
getfield jdk.jfr.internal.EventInstrumentation$SettingInfo.fieldName:Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_SETTING_CONTROL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
aconst_null
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.visitField:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljdk/internal/org/objectweb/asm/FieldVisitor;
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: iconst_0
istore 2
start local 2 7: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.fields:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 12
StackMap locals: jdk.jfr.internal.EventHandlerCreator java.lang.String int top java.util.Iterator
StackMap stack:
8: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventInstrumentation$FieldInfo
astore 3
start local 3 9: aload 3
invokevirtual jdk.jfr.internal.EventInstrumentation$FieldInfo.isString:()Z
ifeq 11
10: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
bipush 18
new java.lang.StringBuilder
dup
ldc "stringPool"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_STRING_POOL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
aconst_null
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.visitField:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljdk/internal/org/objectweb/asm/FieldVisitor;
pop
11: StackMap locals: jdk.jfr.internal.EventHandlerCreator java.lang.String int jdk.jfr.internal.EventInstrumentation$FieldInfo java.util.Iterator
StackMap stack:
iinc 2 1
end local 3 12: StackMap locals: jdk.jfr.internal.EventHandlerCreator java.lang.String int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/jfr/internal/EventHandlerCreator;
1 14 1 internalSuperName Ljava/lang/String;
4 5 2 si Ljdk/jfr/internal/EventInstrumentation$SettingInfo;
7 14 2 fieldIndex I
9 12 3 field Ljdk/jfr/internal/EventInstrumentation$FieldInfo;
private void visitMethod(jdk.internal.org.objectweb.asm.MethodVisitor, int, jdk.internal.org.objectweb.asm.Type, jdk.internal.org.objectweb.asm.commons.Method);
descriptor: (Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
iload 2
aload 3
invokevirtual jdk.internal.org.objectweb.asm.Type.getInternalName:()Ljava/lang/String;
aload 4
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getName:()Ljava/lang/String;
aload 4
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getDescriptor:()Ljava/lang/String;
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMethodInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/EventHandlerCreator;
0 2 1 mv Ljdk/internal/org/objectweb/asm/MethodVisitor;
0 2 2 opcode I
0 2 3 type Ljdk/internal/org/objectweb/asm/Type;
0 2 4 method Ljdk/internal/org/objectweb/asm/commons/Method;
MethodParameters:
Name Flags
mv final
opcode final
type final
method final
private void buildWriteMethod();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=13, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_1
istore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.fields:Ljava/util/List;
invokestatic jdk.jfr.internal.ASMToolkit.makeWriteMethod:(Ljava/util/List;)Ljdk/internal/org/objectweb/asm/commons/Method;
astore 4
start local 4 4: aload 4
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getDescriptor:()Ljava/lang/String;
invokestatic jdk.internal.org.objectweb.asm.Type.getArgumentTypes:(Ljava/lang/String;)[Ljdk/internal/org/objectweb/asm/Type;
astore 5
start local 5 5: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.classWriter:Ljdk/internal/org/objectweb/asm/ClassWriter;
iconst_1
aload 4
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getName:()Ljava/lang/String;
aload 4
invokevirtual jdk.internal.org.objectweb.asm.commons.Method.getDescriptor:()Ljava/lang/String;
aconst_null
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.visitMethod:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)Ljdk/internal/org/objectweb/asm/MethodVisitor;
astore 6
start local 6 6: aload 6
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitCode:()V
7: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 7
start local 7 8: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 8
start local 8 9: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 9
start local 9 10: aload 6
aload 7
aload 8
aload 9
ldc "java/lang/Throwable"
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitTryCatchBlock:(Ljdk/internal/org/objectweb/asm/Label;Ljdk/internal/org/objectweb/asm/Label;Ljdk/internal/org/objectweb/asm/Label;Ljava/lang/String;)V
11: aload 6
aload 7
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
12: aload 0
aload 6
sipush 184
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventHandlerCreator.METHOD_GET_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
13: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
14: aload 6
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
15: aload 6
sipush 180
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_HANDLER:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getInternalName:()Ljava/lang/String;
ldc "platformEventType"
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_PLATFORM_EVENT_TYPE:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFieldInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
16: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventWriterMethod.BEGIN_EVENT:Ljdk/jfr/internal/EventWriterMethod;
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
17: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 10
start local 10 18: aload 6
sipush 153
aload 10
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitJumpInsn:(ILjdk/internal/org/objectweb/asm/Label;)V
19: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
20: aload 6
aload 5
iload 1
aaload
bipush 21
invokevirtual jdk.internal.org.objectweb.asm.Type.getOpcode:(I)I
iload 2
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
21: iload 2
aload 5
iload 1
iinc 1 1
aaload
invokevirtual jdk.internal.org.objectweb.asm.Type.getSize:()I
iadd
istore 2
22: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventWriterMethod.PUT_LONG:Ljdk/jfr/internal/EventWriterMethod;
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
23: iinc 3 1
24: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
25: aload 6
aload 5
iload 1
aaload
bipush 21
invokevirtual jdk.internal.org.objectweb.asm.Type.getOpcode:(I)I
iload 2
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
26: iload 2
aload 5
iload 1
iinc 1 1
aaload
invokevirtual jdk.internal.org.objectweb.asm.Type.getSize:()I
iadd
istore 2
27: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventWriterMethod.PUT_LONG:Ljdk/jfr/internal/EventWriterMethod;
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
28: iinc 3 1
29: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
30: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventWriterMethod.PUT_EVENT_THREAD:Ljdk/jfr/internal/EventWriterMethod;
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
31: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
32: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventWriterMethod.PUT_STACK_TRACE:Ljdk/jfr/internal/EventWriterMethod;
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
33: goto 44
34: StackMap locals: jdk.jfr.internal.EventHandlerCreator int int int jdk.internal.org.objectweb.asm.commons.Method jdk.internal.org.objectweb.asm.Type[] jdk.internal.org.objectweb.asm.MethodVisitor jdk.internal.org.objectweb.asm.Label jdk.internal.org.objectweb.asm.Label jdk.internal.org.objectweb.asm.Label jdk.internal.org.objectweb.asm.Label
StackMap stack:
aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
35: aload 6
aload 5
iload 1
aaload
bipush 21
invokevirtual jdk.internal.org.objectweb.asm.Type.getOpcode:(I)I
iload 2
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
36: iload 2
aload 5
iload 1
iinc 1 1
aaload
invokevirtual jdk.internal.org.objectweb.asm.Type.getSize:()I
iadd
istore 2
37: aload 0
getfield jdk.jfr.internal.EventHandlerCreator.fields:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.jfr.internal.EventInstrumentation$FieldInfo
astore 11
start local 11 38: aload 11
invokevirtual jdk.jfr.internal.EventInstrumentation$FieldInfo.isString:()Z
ifeq 41
39: aload 6
bipush 25
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitVarInsn:(II)V
40: aload 6
sipush 180
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.internalClassName:Ljava/lang/String;
new java.lang.StringBuilder
dup
ldc "stringPool"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_STRING_POOL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFieldInsn:(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
41: StackMap locals: jdk.jfr.internal.EventInstrumentation$FieldInfo
StackMap stack:
aload 11
invokestatic jdk.jfr.internal.EventWriterMethod.lookupMethod:(Ljdk/jfr/internal/EventInstrumentation$FieldInfo;)Ljdk/jfr/internal/EventWriterMethod;
astore 12
start local 12 42: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
aload 12
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
43: iinc 3 1
end local 12 end local 11 44: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield jdk.jfr.internal.EventHandlerCreator.fields:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 34
45: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventWriterMethod.END_EVENT:Ljdk/jfr/internal/EventWriterMethod;
invokevirtual jdk.jfr.internal.EventWriterMethod.asASM:()Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
46: aload 6
sipush 153
aload 7
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitJumpInsn:(ILjdk/internal/org/objectweb/asm/Label;)V
47: aload 6
aload 8
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
48: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 11
start local 11 49: aload 6
sipush 167
aload 11
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitJumpInsn:(ILjdk/internal/org/objectweb/asm/Label;)V
50: aload 6
aload 9
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
51: aload 6
iconst_4
iconst_0
aconst_null
iconst_1
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "java/lang/Throwable"
aastore
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFrame:(II[Ljava/lang/Object;I[Ljava/lang/Object;)V
52: aload 0
aload 6
sipush 184
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventHandlerCreator.METHOD_GET_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
53: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
54: new jdk.internal.org.objectweb.asm.Label
dup
invokespecial jdk.internal.org.objectweb.asm.Label.<init>:()V
astore 12
start local 12 55: aload 6
sipush 198
aload 12
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitJumpInsn:(ILjdk/internal/org/objectweb/asm/Label;)V
56: aload 6
bipush 89
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
57: aload 0
aload 6
sipush 182
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
getstatic jdk.jfr.internal.EventHandlerCreator.METHOD_RESET:Ljdk/internal/org/objectweb/asm/commons/Method;
invokevirtual jdk.jfr.internal.EventHandlerCreator.visitMethod:(Ljdk/internal/org/objectweb/asm/MethodVisitor;ILjdk/internal/org/objectweb/asm/Type;Ljdk/internal/org/objectweb/asm/commons/Method;)V
58: aload 6
aload 12
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
59: aload 6
iconst_3
iconst_0
aconst_null
iconst_2
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "java/lang/Throwable"
aastore
dup
iconst_1
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getInternalName:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFrame:(II[Ljava/lang/Object;I[Ljava/lang/Object;)V
60: aload 6
bipush 87
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
61: aload 6
sipush 191
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
62: aload 6
aload 10
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
63: aload 6
iconst_3
iconst_0
aconst_null
iconst_1
iconst_1
anewarray java.lang.Object
dup
iconst_0
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_EVENT_WRITER:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getInternalName:()Ljava/lang/String;
aastore
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFrame:(II[Ljava/lang/Object;I[Ljava/lang/Object;)V
64: aload 6
bipush 87
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
65: aload 6
aload 11
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitLabel:(Ljdk/internal/org/objectweb/asm/Label;)V
66: aload 6
iconst_3
iconst_0
aconst_null
iconst_0
aconst_null
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitFrame:(II[Ljava/lang/Object;I[Ljava/lang/Object;)V
67: aload 6
sipush 177
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitInsn:(I)V
68: aload 6
iconst_0
iconst_0
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitMaxs:(II)V
69: aload 6
invokevirtual jdk.internal.org.objectweb.asm.MethodVisitor.visitEnd:()V
70: return
end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 71 0 this Ljdk/jfr/internal/EventHandlerCreator;
1 71 1 argIndex I
2 71 2 slotIndex I
3 71 3 fieldIndex I
4 71 4 desc Ljdk/internal/org/objectweb/asm/commons/Method;
5 71 5 argumentTypes [Ljdk/internal/org/objectweb/asm/Type;
6 71 6 mv Ljdk/internal/org/objectweb/asm/MethodVisitor;
8 71 7 start Ljdk/internal/org/objectweb/asm/Label;
9 71 8 endTryBlock Ljdk/internal/org/objectweb/asm/Label;
10 71 9 exceptionHandler Ljdk/internal/org/objectweb/asm/Label;
18 71 10 recursive Ljdk/internal/org/objectweb/asm/Label;
38 44 11 field Ljdk/jfr/internal/EventInstrumentation$FieldInfo;
42 44 12 eventMethod Ljdk/jfr/internal/EventWriterMethod;
49 71 11 end Ljdk/internal/org/objectweb/asm/Label;
55 71 12 rethrow Ljdk/internal/org/objectweb/asm/Label;
private static java.lang.String makeConstructorDescriptor(java.util.List<jdk.jfr.internal.EventInstrumentation$SettingInfo>);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: new java.util.StringJoiner
dup
ldc ""
ldc "("
ldc ")V"
invokespecial java.util.StringJoiner.<init>:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)V
astore 1
start local 1 1: aload 1
getstatic jdk.internal.org.objectweb.asm.Type.BOOLEAN_TYPE:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
2: aload 1
ldc Ljdk/jfr/EventType;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
3: aload 1
ldc Ljdk/jfr/internal/EventControl;
invokestatic jdk.internal.org.objectweb.asm.Type.getType:(Ljava/lang/Class;)Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
4: iconst_0
istore 2
start local 2 5: goto 8
6: StackMap locals: java.util.StringJoiner int
StackMap stack:
aload 1
getstatic jdk.jfr.internal.EventHandlerCreator.TYPE_SETTING_CONTROL:Ljdk/internal/org/objectweb/asm/Type;
invokevirtual jdk.internal.org.objectweb.asm.Type.getDescriptor:()Ljava/lang/String;
invokevirtual java.util.StringJoiner.add:(Ljava/lang/CharSequence;)Ljava/util/StringJoiner;
pop
7: iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 0
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 2 9: aload 1
invokevirtual java.util.StringJoiner.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 settingsInfos Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;
1 10 1 constructordescriptor Ljava/util/StringJoiner;
5 9 2 i I
Signature: (Ljava/util/List<Ljdk/jfr/internal/EventInstrumentation$SettingInfo;>;)Ljava/lang/String;
MethodParameters:
Name Flags
settingsInfos
}
SourceFile: "EventHandlerCreator.java"
InnerClasses:
final FieldInfo = jdk.jfr.internal.EventInstrumentation$FieldInfo of jdk.jfr.internal.EventInstrumentation
final SettingInfo = jdk.jfr.internal.EventInstrumentation$SettingInfo of jdk.jfr.internal.EventInstrumentation