public final class jdk.jfr.internal.instrument.JDKEvents
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.instrument.JDKEvents
super_class: java.lang.Object
{
private static final java.lang.Class<?>[] mirrorEventClasses;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
private static final java.lang.Class<?>[] eventClasses;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
private static final java.lang.Class<?>[] instrumentationClasses;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
private static final java.lang.Class<?>[] targetClasses;
descriptor: [Ljava/lang/Class;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: [Ljava/lang/Class<*>;
private static final jdk.jfr.internal.JVM jvm;
descriptor: Ljdk/jfr/internal/JVM;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Runnable emitExceptionStatistics;
descriptor: Ljava/lang/Runnable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.Runnable emitDirectBufferStatistics;
descriptor: Ljava/lang/Runnable;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static boolean initializationTriggered;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 6
anewarray java.lang.Class
dup
iconst_0
1: ldc Ljdk/jfr/events/DeserializationEvent;
aastore
dup
iconst_1
2: ldc Ljdk/jfr/events/ProcessStartEvent;
aastore
dup
iconst_2
3: ldc Ljdk/jfr/events/SecurityPropertyModificationEvent;
aastore
dup
iconst_3
4: ldc Ljdk/jfr/events/TLSHandshakeEvent;
aastore
dup
iconst_4
5: ldc Ljdk/jfr/events/X509CertificateEvent;
aastore
dup
iconst_5
6: ldc Ljdk/jfr/events/X509ValidationEvent;
aastore
7: putstatic jdk.jfr.internal.instrument.JDKEvents.mirrorEventClasses:[Ljava/lang/Class;
8: bipush 17
anewarray java.lang.Class
dup
iconst_0
9: ldc Ljdk/jfr/events/FileForceEvent;
aastore
dup
iconst_1
10: ldc Ljdk/jfr/events/FileReadEvent;
aastore
dup
iconst_2
11: ldc Ljdk/jfr/events/FileWriteEvent;
aastore
dup
iconst_3
12: ldc Ljdk/jfr/events/SocketReadEvent;
aastore
dup
iconst_4
13: ldc Ljdk/jfr/events/SocketWriteEvent;
aastore
dup
iconst_5
14: ldc Ljdk/jfr/events/ExceptionThrownEvent;
aastore
dup
bipush 6
15: ldc Ljdk/jfr/events/ExceptionStatisticsEvent;
aastore
dup
bipush 7
16: ldc Ljdk/jfr/events/ErrorThrownEvent;
aastore
dup
bipush 8
17: ldc Ljdk/jfr/events/ActiveSettingEvent;
aastore
dup
bipush 9
18: ldc Ljdk/jfr/events/ActiveRecordingEvent;
aastore
dup
bipush 10
19: ldc Ljdk/internal/event/DeserializationEvent;
aastore
dup
bipush 11
20: ldc Ljdk/internal/event/ProcessStartEvent;
aastore
dup
bipush 12
21: ldc Ljdk/internal/event/SecurityPropertyModificationEvent;
aastore
dup
bipush 13
22: ldc Ljdk/internal/event/TLSHandshakeEvent;
aastore
dup
bipush 14
23: ldc Ljdk/internal/event/X509CertificateEvent;
aastore
dup
bipush 15
24: ldc Ljdk/internal/event/X509ValidationEvent;
aastore
dup
bipush 16
25: ldc Ljdk/jfr/events/DirectBufferStatisticsEvent;
aastore
26: putstatic jdk.jfr.internal.instrument.JDKEvents.eventClasses:[Ljava/lang/Class;
27: bipush 7
anewarray java.lang.Class
dup
iconst_0
28: ldc Ljdk/jfr/internal/instrument/FileInputStreamInstrumentor;
aastore
dup
iconst_1
29: ldc Ljdk/jfr/internal/instrument/FileOutputStreamInstrumentor;
aastore
dup
iconst_2
30: ldc Ljdk/jfr/internal/instrument/RandomAccessFileInstrumentor;
aastore
dup
iconst_3
31: ldc Ljdk/jfr/internal/instrument/FileChannelImplInstrumentor;
aastore
dup
iconst_4
32: ldc Ljdk/jfr/internal/instrument/SocketInputStreamInstrumentor;
aastore
dup
iconst_5
33: ldc Ljdk/jfr/internal/instrument/SocketOutputStreamInstrumentor;
aastore
dup
bipush 6
34: ldc Ljdk/jfr/internal/instrument/SocketChannelImplInstrumentor;
aastore
35: putstatic jdk.jfr.internal.instrument.JDKEvents.instrumentationClasses:[Ljava/lang/Class;
36: getstatic jdk.jfr.internal.instrument.JDKEvents.instrumentationClasses:[Ljava/lang/Class;
arraylength
anewarray java.lang.Class
putstatic jdk.jfr.internal.instrument.JDKEvents.targetClasses:[Ljava/lang/Class;
37: invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
putstatic jdk.jfr.internal.instrument.JDKEvents.jvm:Ljdk/jfr/internal/JVM;
38: invokedynamic run()Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/jfr/internal/instrument/JDKEvents.emitExceptionStatistics()V (6)
()V
putstatic jdk.jfr.internal.instrument.JDKEvents.emitExceptionStatistics:Ljava/lang/Runnable;
39: invokedynamic run()Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/jfr/internal/instrument/JDKEvents.emitDirectBufferStatistics()V (6)
()V
putstatic jdk.jfr.internal.instrument.JDKEvents.emitDirectBufferStatistics:Ljava/lang/Runnable;
40: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/instrument/JDKEvents;
public static synchronized void initialize();
descriptor: ()V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=0
0: getstatic jdk.jfr.internal.instrument.JDKEvents.initializationTriggered:Z
ifne 17
1: getstatic jdk.jfr.internal.instrument.JDKEvents.mirrorEventClasses:[Ljava/lang/Class;
dup
astore 3
arraylength
istore 2
iconst_0
istore 1
goto 5
StackMap locals: top int int java.lang.Class[]
StackMap stack:
2: aload 3
iload 1
aaload
astore 0
start local 0 3: aload 0
invokestatic jdk.jfr.internal.SecuritySupport.registerMirror:(Ljava/lang/Class;)V
end local 0 4: iinc 1 1
StackMap locals:
StackMap stack:
5: iload 1
iload 2
if_icmplt 2
6: getstatic jdk.jfr.internal.instrument.JDKEvents.eventClasses:[Ljava/lang/Class;
dup
astore 3
arraylength
istore 2
iconst_0
istore 1
goto 10
StackMap locals:
StackMap stack:
7: aload 3
iload 1
aaload
astore 0
start local 0 8: aload 0
invokestatic jdk.jfr.internal.SecuritySupport.registerEvent:(Ljava/lang/Class;)V
end local 0 9: iinc 1 1
StackMap locals:
StackMap stack:
10: iload 1
iload 2
if_icmplt 7
11: iconst_1
putstatic jdk.jfr.internal.instrument.JDKEvents.initializationTriggered:Z
12: ldc Ljdk/jfr/events/ExceptionStatisticsEvent;
getstatic jdk.jfr.internal.instrument.JDKEvents.emitExceptionStatistics:Ljava/lang/Runnable;
invokestatic jdk.jfr.internal.RequestEngine.addTrustedJDKHook:(Ljava/lang/Class;Ljava/lang/Runnable;)V
13: ldc Ljdk/jfr/events/DirectBufferStatisticsEvent;
getstatic jdk.jfr.internal.instrument.JDKEvents.emitDirectBufferStatistics:Ljava/lang/Runnable;
invokestatic jdk.jfr.internal.RequestEngine.addTrustedJDKHook:(Ljava/lang/Class;Ljava/lang/Runnable;)V
14: goto 17
StackMap locals:
StackMap stack: java.lang.Exception
15: astore 0
start local 0 16: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.WARN:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Could not initialize JDK events. "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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;
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
end local 0 17: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
3 4 0 mirrorEventClass Ljava/lang/Class<*>;
8 9 0 eventClass Ljava/lang/Class<*>;
16 17 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 14 15 Class java.lang.Exception
public static void addInstrumentation();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: iconst_0
istore 1
start local 1 2: goto 8
3: StackMap locals: java.util.List int
StackMap stack:
getstatic jdk.jfr.internal.instrument.JDKEvents.instrumentationClasses:[Ljava/lang/Class;
iload 1
aaload
ldc Ljdk/jfr/internal/instrument/JIInstrumentationTarget;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast jdk.jfr.internal.instrument.JIInstrumentationTarget
astore 2
start local 2 4: aload 2
invokeinterface jdk.jfr.internal.instrument.JIInstrumentationTarget.value:()Ljava/lang/String;
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 5: getstatic jdk.jfr.internal.instrument.JDKEvents.targetClasses:[Ljava/lang/Class;
iload 1
aload 3
aastore
6: aload 0
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 end local 2 7: iinc 1 1
StackMap locals:
StackMap stack:
8: iload 1
getstatic jdk.jfr.internal.instrument.JDKEvents.instrumentationClasses:[Ljava/lang/Class;
arraylength
if_icmplt 3
end local 1 9: aload 0
ldc Ljava/lang/Throwable;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: aload 0
ldc Ljava/lang/Error;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.INFO:Ljdk/jfr/internal/LogLevel;
ldc "Retransformed JDK classes"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
12: getstatic jdk.jfr.internal.instrument.JDKEvents.jvm:Ljdk/jfr/internal/JVM;
aload 0
aload 0
invokeinterface java.util.List.size:()I
anewarray java.lang.Class
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.Class[]
invokevirtual jdk.jfr.internal.JVM.retransformClasses:([Ljava/lang/Class;)V
end local 0 13: goto 18
StackMap locals:
StackMap stack: java.lang.IllegalStateException
14: astore 0
start local 0 15: aload 0
athrow
end local 0 16: StackMap locals:
StackMap stack: java.lang.Exception
astore 0
start local 0 17: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.WARN:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Could not add instrumentation for JDK events. "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
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;
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
end local 0 18: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 13 0 list Ljava/util/List<Ljava/lang/Class<*>;>;
2 9 1 i I
4 7 2 tgt Ljdk/jfr/internal/instrument/JIInstrumentationTarget;
5 7 3 clazz Ljava/lang/Class<*>;
15 16 0 ise Ljava/lang/IllegalStateException;
17 18 0 e Ljava/lang/Exception;
Exception table:
from to target type
0 13 14 Class java.lang.IllegalStateException
0 13 16 Class java.lang.Exception
private static void emitExceptionStatistics();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: new jdk.jfr.events.ExceptionStatisticsEvent
dup
invokespecial jdk.jfr.events.ExceptionStatisticsEvent.<init>:()V
astore 0
start local 0 1: aload 0
invokestatic jdk.jfr.internal.instrument.ThrowableTracer.numThrowables:()J
putfield jdk.jfr.events.ExceptionStatisticsEvent.throwables:J
2: aload 0
invokevirtual jdk.jfr.events.ExceptionStatisticsEvent.commit:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 t Ljdk/jfr/events/ExceptionStatisticsEvent;
public static byte[] retransformCallback(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;[B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: ldc Ljava/lang/Throwable;
aload 0
if_acmpne 3
1: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.TRACE:Ljdk/jfr/internal/LogLevel;
ldc "Instrumenting java.lang.Throwable"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
2: ldc Ljava/lang/Throwable;
aload 1
invokestatic jdk.jfr.internal.instrument.ConstructorTracerWriter.generateBytes:(Ljava/lang/Class;[B)[B
areturn
3: StackMap locals:
StackMap stack:
ldc Ljava/lang/Error;
aload 0
if_acmpne 6
4: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.TRACE:Ljdk/jfr/internal/LogLevel;
ldc "Instrumenting java.lang.Error"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
5: ldc Ljava/lang/Error;
aload 1
invokestatic jdk.jfr.internal.instrument.ConstructorTracerWriter.generateBytes:(Ljava/lang/Class;[B)[B
areturn
6: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 7: goto 14
8: StackMap locals: int
StackMap stack:
getstatic jdk.jfr.internal.instrument.JDKEvents.targetClasses:[Ljava/lang/Class;
iload 2
aaload
aload 0
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 13
9: getstatic jdk.jfr.internal.instrument.JDKEvents.instrumentationClasses:[Ljava/lang/Class;
iload 2
aaload
astore 3
start local 3 10: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.TRACE:Ljdk/jfr/internal/LogLevel;
invokestatic jdk.jfr.internal.Logger.shouldLog:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;)Z
ifeq 12
11: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.TRACE:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Processing instrumentation class: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
12: StackMap locals: java.lang.Class
StackMap stack:
new jdk.jfr.internal.instrument.JIClassInstrumentation
dup
getstatic jdk.jfr.internal.instrument.JDKEvents.instrumentationClasses:[Ljava/lang/Class;
iload 2
aaload
aload 0
aload 1
invokespecial jdk.jfr.internal.instrument.JIClassInstrumentation.<init>:(Ljava/lang/Class;Ljava/lang/Class;[B)V
invokevirtual jdk.jfr.internal.instrument.JIClassInstrumentation.getNewBytes:()[B
areturn
end local 3 13: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
getstatic jdk.jfr.internal.instrument.JDKEvents.targetClasses:[Ljava/lang/Class;
arraylength
if_icmplt 8
end local 2 15: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 klass Ljava/lang/Class<*>;
0 16 1 oldBytes [B
7 15 2 i I
10 13 3 c Ljava/lang/Class<*>;
Exceptions:
throws java.lang.Throwable
Signature: (Ljava/lang/Class<*>;[B)[B
MethodParameters:
Name Flags
klass
oldBytes
public static void remove();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokedynamic run()Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/jfr/internal/instrument/JDKEvents.emitExceptionStatistics()V (6)
()V
invokestatic jdk.jfr.internal.RequestEngine.removeHook:(Ljava/lang/Runnable;)Z
pop
1: getstatic jdk.jfr.internal.instrument.JDKEvents.emitDirectBufferStatistics:Ljava/lang/Runnable;
invokestatic jdk.jfr.internal.RequestEngine.removeHook:(Ljava/lang/Runnable;)Z
pop
2: return
LocalVariableTable:
Start End Slot Name Signature
private static void emitDirectBufferStatistics();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new jdk.jfr.events.DirectBufferStatisticsEvent
dup
invokespecial jdk.jfr.events.DirectBufferStatisticsEvent.<init>:()V
astore 0
start local 0 1: aload 0
invokevirtual jdk.jfr.events.DirectBufferStatisticsEvent.commit:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 e Ljdk/jfr/events/DirectBufferStatisticsEvent;
}
SourceFile: "JDKEvents.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles