public final class jdk.jfr.internal.Utils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.Utils
super_class: java.lang.Object
{
private static final java.lang.Object flushObject;
descriptor: Ljava/lang/Object;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String INFINITY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "infinity"
public static final java.lang.String EVENTS_PACKAGE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.jfr.events"
public static final java.lang.String INSTRUMENT_PACKAGE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.jfr.internal.instrument"
public static final java.lang.String HANDLERS_PACKAGE_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.jfr.internal.handlers"
public static final java.lang.String REGISTER_EVENT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "registerEvent"
public static final java.lang.String ACCESS_FLIGHT_RECORDER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "accessFlightRecorder"
private static final java.lang.String LEGACY_EVENT_NAME_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.oracle.jdk."
private static java.lang.Boolean SAVE_GENERATED;
descriptor: Ljava/lang/Boolean;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.time.Duration MICRO_SECOND;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration SECOND;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration MINUTE;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration HOUR;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration DAY;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int NANO_SIGNIFICANT_FIGURES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 9
private static final int MILL_SIGNIFICANT_FIGURES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int DISPLAY_NANO_DIGIT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int BASE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 10
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putstatic jdk.jfr.internal.Utils.flushObject:Ljava/lang/Object;
1: ldc 1000
invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.Utils.MICRO_SECOND:Ljava/time/Duration;
2: lconst_1
invokestatic java.time.Duration.ofSeconds:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.Utils.SECOND:Ljava/time/Duration;
3: lconst_1
invokestatic java.time.Duration.ofMinutes:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.Utils.MINUTE:Ljava/time/Duration;
4: lconst_1
invokestatic java.time.Duration.ofHours:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.Utils.HOUR:Ljava/time/Duration;
5: lconst_1
invokestatic java.time.Duration.ofDays:(J)Ljava/time/Duration;
putstatic jdk.jfr.internal.Utils.DAY:Ljava/time/Duration;
6: 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/Utils;
public static void checkAccessFlightRecorder();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
new jdk.jfr.FlightRecorderPermission
dup
ldc "accessFlightRecorder"
invokespecial jdk.jfr.FlightRecorderPermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 sm Ljava/lang/SecurityManager;
Exceptions:
throws java.lang.SecurityException
public static void checkRegisterPermission();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
new jdk.jfr.FlightRecorderPermission
dup
ldc "registerEvent"
invokespecial jdk.jfr.FlightRecorderPermission.<init>:(Ljava/lang/String;)V
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
3: StackMap locals: java.lang.SecurityManager
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 sm Ljava/lang/SecurityManager;
Exceptions:
throws java.lang.SecurityException
private static java.lang.String formatDataAmount(java.lang.String, long);
descriptor: (Ljava/lang/String;J)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=10, locals=5, args_size=2
start local 0 start local 1 0: lload 1
invokestatic java.lang.Math.abs:(J)J
l2d
invokestatic java.lang.Math.log:(D)D
ldc 1024.0
invokestatic java.lang.Math.log:(D)D
ddiv
d2i
istore 3
start local 3 1: ldc "kMGTPE"
iload 3
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 2: aload 0
iconst_2
anewarray java.lang.Object
dup
iconst_0
lload 1
l2d
ldc 1024.0
iload 3
i2d
invokestatic java.lang.Math.pow:(DD)D
ddiv
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
dup
iconst_1
iload 4
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 formatter Ljava/lang/String;
0 3 1 amount J
1 3 3 exp I
2 3 4 unitPrefix C
MethodParameters:
Name Flags
formatter
amount
public static java.lang.String formatBytesCompact(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc 1024
lcmp
ifge 2
1: lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
ldc "%.1f%cB"
lload 0
invokestatic jdk.jfr.internal.Utils.formatDataAmount:(Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bytes J
MethodParameters:
Name Flags
bytes
public static java.lang.String formatBits(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
lconst_1
lcmp
ifeq 1
lload 0
ldc -1
lcmp
ifne 2
1: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " bit"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
lload 0
ldc 1024
lcmp
ifge 4
lload 0
ldc -1024
lcmp
ifle 4
3: new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " bits"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
ldc "%.1f %cbit"
lload 0
invokestatic jdk.jfr.internal.Utils.formatDataAmount:(Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 bits J
MethodParameters:
Name Flags
bits
public static java.lang.String formatBytes(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
lconst_1
lcmp
ifeq 1
lload 0
ldc -1
lcmp
ifne 2
1: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " byte"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
lload 0
ldc 1024
lcmp
ifge 4
lload 0
ldc -1024
lcmp
ifle 4
3: new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
ldc "%.1f %cB"
lload 0
invokestatic jdk.jfr.internal.Utils.formatDataAmount:(Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 bytes J
MethodParameters:
Name Flags
bytes
public static java.lang.String formatBytesPerSecond(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc 1024
lcmp
ifge 2
lload 0
ldc -1024
lcmp
ifle 2
1: new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " byte/s"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
ldc "%.1f %cB/s"
lload 0
invokestatic jdk.jfr.internal.Utils.formatDataAmount:(Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bytes J
MethodParameters:
Name Flags
bytes
public static java.lang.String formatBitsPerSecond(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
ldc 1024
lcmp
ifge 2
lload 0
ldc -1024
lcmp
ifle 2
1: new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " bps"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
ldc "%.1f %cbps"
lload 0
invokestatic jdk.jfr.internal.Utils.formatDataAmount:(Ljava/lang/String;J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bits J
MethodParameters:
Name Flags
bits
public static java.lang.String formatTimespan(java.time.Duration, java.lang.String);
descriptor: (Ljava/time/Duration;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=11, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: ldc "0"
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.time.Duration.toNanos:()J
lstore 2
start local 2 3: getstatic jdk.jfr.internal.Utils$TimespanUnit.NANOSECONDS:Ljdk/jfr/internal/Utils$TimespanUnit;
astore 4
start local 4 4: invokestatic jdk.jfr.internal.Utils$TimespanUnit.values:()[Ljdk/jfr/internal/Utils$TimespanUnit;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 12
StackMap locals: java.time.Duration java.lang.String long jdk.jfr.internal.Utils$TimespanUnit top int int jdk.jfr.internal.Utils$TimespanUnit[]
StackMap stack:
5: aload 8
iload 6
aaload
astore 5
start local 5 6: aload 5
astore 4
7: aload 5
getfield jdk.jfr.internal.Utils$TimespanUnit.amount:J
lstore 9
start local 9 8: aload 4
getstatic jdk.jfr.internal.Utils$TimespanUnit.DAYS:Ljdk/jfr/internal/Utils$TimespanUnit;
if_acmpeq 13
lload 2
lload 9
lcmp
iflt 13
lload 2
lload 9
lrem
lconst_0
lcmp
ifeq 10
9: goto 13
10: StackMap locals: java.time.Duration java.lang.String long jdk.jfr.internal.Utils$TimespanUnit jdk.jfr.internal.Utils$TimespanUnit int int jdk.jfr.internal.Utils$TimespanUnit[] long
StackMap stack:
lload 2
lload 9
ldiv
lstore 2
end local 9 end local 5 11: iinc 6 1
StackMap locals: java.time.Duration java.lang.String long jdk.jfr.internal.Utils$TimespanUnit top int int jdk.jfr.internal.Utils$TimespanUnit[]
StackMap stack:
12: iload 6
iload 7
if_icmplt 5
13: StackMap locals: java.time.Duration java.lang.String long jdk.jfr.internal.Utils$TimespanUnit
StackMap stack:
ldc "%d%s%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
aload 4
getfield jdk.jfr.internal.Utils$TimespanUnit.text:Ljava/lang/String;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 dValue Ljava/time/Duration;
0 14 1 separation Ljava/lang/String;
3 14 2 value J
4 14 4 result Ljdk/jfr/internal/Utils$TimespanUnit;
6 11 5 unit Ljdk/jfr/internal/Utils$TimespanUnit;
8 11 9 amount J
MethodParameters:
Name Flags
dValue
separation
static java.lang.String formatDateTime(java.time.LocalDateTime);
descriptor: (Ljava/time/LocalDateTime;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
bipush 19
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getYear:()I
bipush 100
idiv
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
2: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getYear:()I
bipush 100
irem
iconst_1
invokestatic jdk.jfr.internal.Utils.appendPadded:(Ljava/lang/StringBuilder;IZ)V
3: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getMonth:()Ljava/time/Month;
invokevirtual java.time.Month.getValue:()I
iconst_1
invokestatic jdk.jfr.internal.Utils.appendPadded:(Ljava/lang/StringBuilder;IZ)V
4: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getDayOfMonth:()I
iconst_1
invokestatic jdk.jfr.internal.Utils.appendPadded:(Ljava/lang/StringBuilder;IZ)V
5: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getHour:()I
iconst_1
invokestatic jdk.jfr.internal.Utils.appendPadded:(Ljava/lang/StringBuilder;IZ)V
6: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getMinute:()I
iconst_1
invokestatic jdk.jfr.internal.Utils.appendPadded:(Ljava/lang/StringBuilder;IZ)V
7: aload 1
aload 0
invokevirtual java.time.LocalDateTime.getSecond:()I
iconst_0
invokestatic jdk.jfr.internal.Utils.appendPadded:(Ljava/lang/StringBuilder;IZ)V
8: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 time Ljava/time/LocalDateTime;
1 9 1 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
time
private static void appendPadded(java.lang.StringBuilder, int, boolean);
descriptor: (Ljava/lang/StringBuilder;IZ)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
bipush 10
if_icmpge 2
1: aload 0
bipush 48
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
3: iload 2
ifeq 5
4: aload 0
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 text Ljava/lang/StringBuilder;
0 6 1 number I
0 6 2 separator Z
MethodParameters:
Name Flags
text
number
separator
public static long parseTimespanWithInfinity(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "infinity"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: ldc 9223372036854775807
lreturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.jfr.internal.Utils.parseTimespan:(Ljava/lang/String;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static long parseTimespan(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
ldc "ns"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "us"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 4
3: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
getstatic java.util.concurrent.TimeUnit.MICROSECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
4: StackMap locals:
StackMap stack:
aload 0
ldc "ms"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
5: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
6: StackMap locals:
StackMap stack:
aload 0
ldc "s"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 8
7: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
8: StackMap locals:
StackMap stack:
aload 0
ldc "m"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 10
9: ldc 60
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lmul
lreturn
10: StackMap locals:
StackMap stack:
aload 0
ldc "h"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 12
11: ldc 3600
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lmul
lreturn
12: StackMap locals:
StackMap stack:
aload 0
ldc "d"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 14
13: ldc 86400
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lmul
lreturn
14: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
pop2
15: goto 18
StackMap locals:
StackMap stack: java.lang.NumberFormatException
16: pop
17: new java.lang.NumberFormatException
dup
new java.lang.StringBuilder
dup
ldc "'"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is not a valid timespan. Should be numeric value followed by a unit, i.e. 20 ms. Valid units are ns, us, s, m, h and d."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.NumberFormatException.<init>:(Ljava/lang/String;)V
athrow
18: StackMap locals:
StackMap stack:
new java.lang.NumberFormatException
dup
new java.lang.StringBuilder
dup
ldc "Timespan + '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is missing unit. Valid units are ns, us, s, m, h and d."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.NumberFormatException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 s Ljava/lang/String;
Exception table:
from to target type
14 15 16 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
s
static java.util.List<java.lang.annotation.Annotation> getAnnotations(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.lang.Class.getAnnotations:()[Ljava/lang/annotation/Annotation;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: java.lang.Class java.util.List top int int java.lang.annotation.Annotation[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 1
aload 2
invokestatic jdk.jfr.internal.Utils.getAnnotation:(Ljava/lang/annotation/Annotation;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 clazz Ljava/lang/Class<*>;
1 7 1 annos Ljava/util/List<Ljava/lang/annotation/Annotation;>;
3 4 2 a Ljava/lang/annotation/Annotation;
Signature: (Ljava/lang/Class<*>;)Ljava/util/List<Ljava/lang/annotation/Annotation;>;
MethodParameters:
Name Flags
clazz
private static java.util.List<? extends java.lang.annotation.Annotation> getAnnotation(java.lang.annotation.Annotation);
descriptor: (Ljava/lang/annotation/Annotation;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: aload 0
invokeinterface java.lang.annotation.Annotation.annotationType:()Ljava/lang/Class;
astore 1
start local 1 1: aload 1
invokestatic jdk.jfr.internal.Utils.getValueMethod:(Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 2
start local 2 2: aload 2
ifnull 11
3: aload 2
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
astore 3
start local 3 4: aload 3
invokevirtual java.lang.Class.isArray:()Z
ifeq 11
5: aload 3
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 4
start local 4 6: aload 4
ldc Ljava/lang/annotation/Repeatable;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast java.lang.annotation.Repeatable
astore 5
start local 5 7: aload 5
ifnull 11
8: aload 5
invokeinterface java.lang.annotation.Repeatable.value:()Ljava/lang/Class;
astore 6
start local 6 9: aload 1
aload 6
if_acmpne 11
10: aload 0
aload 2
invokestatic jdk.jfr.internal.Utils.getAnnotationValues:(Ljava/lang/annotation/Annotation;Ljava/lang/reflect/Method;)Ljava/util/List;
areturn
end local 6 end local 5 end local 4 end local 3 11: StackMap locals: java.lang.Class java.lang.reflect.Method
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 12: aload 3
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
13: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 a Ljava/lang/annotation/Annotation;
1 14 1 annotated Ljava/lang/Class<*>;
2 14 2 valueMethod Ljava/lang/reflect/Method;
4 11 3 returnType Ljava/lang/Class<*>;
6 11 4 candidate Ljava/lang/Class<*>;
7 11 5 r Ljava/lang/annotation/Repeatable;
9 11 6 repeatClass Ljava/lang/Class<*>;
12 14 3 annos Ljava/util/List<Ljava/lang/annotation/Annotation;>;
Signature: (Ljava/lang/annotation/Annotation;)Ljava/util/List<+Ljava/lang/annotation/Annotation;>;
MethodParameters:
Name Flags
a
static boolean isAfter(jdk.jfr.RecordingState, jdk.jfr.RecordingState);
descriptor: (Ljdk/jfr/RecordingState;Ljdk/jfr/RecordingState;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jfr.RecordingState.ordinal:()I
aload 1
invokevirtual jdk.jfr.RecordingState.ordinal:()I
if_icmple 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 stateToTest Ljdk/jfr/RecordingState;
0 2 1 b Ljdk/jfr/RecordingState;
MethodParameters:
Name Flags
stateToTest
b
static boolean isBefore(jdk.jfr.RecordingState, jdk.jfr.RecordingState);
descriptor: (Ljdk/jfr/RecordingState;Ljdk/jfr/RecordingState;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jfr.RecordingState.ordinal:()I
aload 1
invokevirtual jdk.jfr.RecordingState.ordinal:()I
if_icmpge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 stateToTest Ljdk/jfr/RecordingState;
0 2 1 b Ljdk/jfr/RecordingState;
MethodParameters:
Name Flags
stateToTest
b
static boolean isState(jdk.jfr.RecordingState, jdk.jfr.RecordingState[]);
descriptor: (Ljdk/jfr/RecordingState;[Ljdk/jfr/RecordingState;)Z
flags: (0x0088) ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: jdk.jfr.RecordingState jdk.jfr.RecordingState[] top int int jdk.jfr.RecordingState[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 2
aload 0
if_acmpne 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 stateToTest Ljdk/jfr/RecordingState;
0 7 1 states [Ljdk/jfr/RecordingState;
2 4 2 s Ljdk/jfr/RecordingState;
MethodParameters:
Name Flags
stateToTest
states
private static java.util.List<java.lang.annotation.Annotation> getAnnotationValues(java.lang.annotation.Annotation, java.lang.reflect.Method);
descriptor: (Ljava/lang/annotation/Annotation;Ljava/lang/reflect/Method;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.annotation.Annotation[]
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.Exception
pop
3: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 a Ljava/lang/annotation/Annotation;
0 4 1 valueMethod Ljava/lang/reflect/Method;
Exception table:
from to target type
0 1 2 Class java.lang.IllegalAccessException
0 1 2 Class java.lang.IllegalArgumentException
0 1 2 Class java.lang.reflect.InvocationTargetException
Signature: (Ljava/lang/annotation/Annotation;Ljava/lang/reflect/Method;)Ljava/util/List<Ljava/lang/annotation/Annotation;>;
MethodParameters:
Name Flags
a
valueMethod
private static java.lang.reflect.Method getValueMethod(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/reflect/Method;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "value"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.NoSuchMethodException
pop
3: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 annotated Ljava/lang/Class<*>;
Exception table:
from to target type
0 1 2 Class java.lang.NoSuchMethodException
Signature: (Ljava/lang/Class<*>;)Ljava/lang/reflect/Method;
MethodParameters:
Name Flags
annotated
public static void touch(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new java.io.RandomAccessFile
dup
aload 0
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
ldc "rw"
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 1
start local 1 1: aload 1
invokevirtual java.io.RandomAccessFile.close:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 dumpFile Ljava/nio/file/Path;
1 3 1 raf Ljava/io/RandomAccessFile;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dumpFile
public static java.lang.Class<?> unboxType(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Class;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljava/lang/Integer;
if_acmpne 2
1: getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Long;
if_acmpne 4
3: getstatic java.lang.Long.TYPE:Ljava/lang/Class;
areturn
4: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Float;
if_acmpne 6
5: getstatic java.lang.Float.TYPE:Ljava/lang/Class;
areturn
6: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Double;
if_acmpne 8
7: getstatic java.lang.Double.TYPE:Ljava/lang/Class;
areturn
8: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Byte;
if_acmpne 10
9: getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
areturn
10: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Short;
if_acmpne 12
11: getstatic java.lang.Short.TYPE:Ljava/lang/Class;
areturn
12: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Boolean;
if_acmpne 14
13: getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
areturn
14: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/Character;
if_acmpne 16
15: getstatic java.lang.Character.TYPE:Ljava/lang/Class;
areturn
16: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 t Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/Class<*>;
MethodParameters:
Name Flags
t
static long nanosToTicks(long);
descriptor: (J)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: lload 0
l2d
invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.getTimeConversionFactor:()D
dmul
d2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 nanos J
MethodParameters:
Name Flags
nanos
public static synchronized jdk.jfr.internal.handlers.EventHandler getHandler(java.lang.Class<? extends jdk.internal.event.Event>);
descriptor: (Ljava/lang/Class;)Ljdk/jfr/internal/handlers/EventHandler;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic jdk.jfr.internal.Utils.ensureValidEventSubclass:(Ljava/lang/Class;)V
1: aload 0
ldc "eventHandler"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 1
start local 1 2: aload 1
invokestatic jdk.jfr.internal.SecuritySupport.setAccessible:(Ljava/lang/reflect/Field;)V
3: aload 1
aconst_null
invokevirtual java.lang.reflect.Field.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.jfr.internal.handlers.EventHandler
4: areturn
end local 1 5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: new java.lang.InternalError
dup
ldc "Could not access event handler"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 eventClass Ljava/lang/Class<+Ljdk/internal/event/Event;>;
2 5 1 f Ljava/lang/reflect/Field;
Exception table:
from to target type
1 4 5 Class java.lang.NoSuchFieldException
1 4 5 Class java.lang.IllegalArgumentException
1 4 5 Class java.lang.IllegalAccessException
Signature: (Ljava/lang/Class<+Ljdk/internal/event/Event;>;)Ljdk/jfr/internal/handlers/EventHandler;
MethodParameters:
Name Flags
eventClass
static synchronized void setHandler(java.lang.Class<? extends jdk.internal.event.Event>, jdk.jfr.internal.handlers.EventHandler);
descriptor: (Ljava/lang/Class;Ljdk/jfr/internal/handlers/EventHandler;)V
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.jfr.internal.Utils.ensureValidEventSubclass:(Ljava/lang/Class;)V
1: aload 0
ldc "eventHandler"
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 2
start local 2 2: aload 2
invokestatic jdk.jfr.internal.SecuritySupport.setAccessible:(Ljava/lang/reflect/Field;)V
3: aload 2
aconst_null
aload 1
invokevirtual java.lang.reflect.Field.set:(Ljava/lang/Object;Ljava/lang/Object;)V
end local 2 4: goto 7
StackMap locals:
StackMap stack: java.lang.Exception
5: pop
6: new java.lang.InternalError
dup
ldc "Could not access event handler"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 eventClass Ljava/lang/Class<+Ljdk/internal/event/Event;>;
0 8 1 handler Ljdk/jfr/internal/handlers/EventHandler;
2 4 2 field Ljava/lang/reflect/Field;
Exception table:
from to target type
1 4 5 Class java.lang.NoSuchFieldException
1 4 5 Class java.lang.IllegalArgumentException
1 4 5 Class java.lang.IllegalAccessException
Signature: (Ljava/lang/Class<+Ljdk/internal/event/Event;>;Ljdk/jfr/internal/handlers/EventHandler;)V
MethodParameters:
Name Flags
eventClass
handler
public static java.util.Map<java.lang.String, java.lang.String> sanitizeNullFreeStringMap(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: new java.util.HashMap
dup
aload 0
invokeinterface java.util.Map.size:()I
invokespecial java.util.HashMap.<init>:(I)V
astore 1
start local 1 1: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: java.util.Map java.util.HashMap top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 4: aload 4
ifnonnull 6
5: new java.lang.NullPointerException
dup
ldc "Null key is not allowed in map"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.util.Map java.util.HashMap java.util.Map$Entry java.util.Iterator java.lang.String
StackMap stack:
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 7: aload 5
ifnonnull 9
8: new java.lang.NullPointerException
dup
ldc "Null value is not allowed in map"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 4
aload 5
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 4 end local 2 10: StackMap locals: java.util.Map java.util.HashMap top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
11: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 settings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 12 1 map Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;
3 10 2 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/String;>;
4 10 4 key Ljava/lang/String;
7 10 5 value Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
settings
public static <T> java.util.List<T> sanitizeNullFreeList(java.util.List<T>, java.lang.Class<T>);
descriptor: (Ljava/util/List;Ljava/lang/Class;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 0
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.util.List java.lang.Class java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Object
astore 3
start local 3 3: aload 3
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "Null is not an allowed element in list"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.util.List java.lang.Class java.util.List java.lang.Object java.util.Iterator
StackMap stack:
aload 3
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
if_acmpeq 7
6: new java.lang.ClassCastException
dup
invokespecial java.lang.ClassCastException.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 8: StackMap locals: java.util.List java.lang.Class java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 elements Ljava/util/List<TT;>;
0 10 1 clazz Ljava/lang/Class<TT;>;
1 10 2 sanitized Ljava/util/List<TT;>;
3 8 3 element TT;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;Ljava/lang/Class<TT;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
elements
clazz
static java.util.List<java.lang.reflect.Field> getVisibleEventFields(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/List;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: aload 0
invokestatic jdk.jfr.internal.Utils.ensureValidEventSubclass:(Ljava/lang/Class;)V
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 2: aload 0
astore 2
start local 2 3: goto 11
4: StackMap locals: java.util.List java.lang.Class
StackMap stack:
aload 2
invokevirtual java.lang.Class.getDeclaredFields:()[Ljava/lang/reflect/Field;
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: java.lang.Class java.util.List java.lang.Class top int int java.lang.reflect.Field[]
StackMap stack:
5: aload 6
iload 4
aaload
astore 3
start local 3 6: aload 2
aload 0
if_acmpeq 7
aload 3
invokevirtual java.lang.reflect.Field.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isPrivate:(I)Z
ifne 8
7: StackMap locals: java.lang.Class java.util.List java.lang.Class java.lang.reflect.Field int int java.lang.reflect.Field[]
StackMap stack:
aload 1
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 8: StackMap locals: java.lang.Class java.util.List java.lang.Class top int int java.lang.reflect.Field[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 5
if_icmplt 5
10: aload 2
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 2
StackMap locals: java.lang.Class java.util.List java.lang.Class
StackMap stack:
11: aload 2
ldc Ljdk/internal/event/Event;
if_acmpne 4
end local 2 12: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 clazz Ljava/lang/Class<*>;
2 13 1 fields Ljava/util/List<Ljava/lang/reflect/Field;>;
3 12 2 c Ljava/lang/Class<*>;
6 8 3 field Ljava/lang/reflect/Field;
Signature: (Ljava/lang/Class<*>;)Ljava/util/List<Ljava/lang/reflect/Field;>;
MethodParameters:
Name Flags
clazz
public static void ensureValidEventSubclass(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc Ljdk/internal/event/Event;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 2
aload 0
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isAbstract:(I)Z
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "Abstract event classes are not allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
ldc Ljdk/jfr/Event;
if_acmpeq 3
aload 0
ldc Ljdk/internal/event/Event;
if_acmpeq 3
ldc Ljdk/internal/event/Event;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 4
3: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Must be a subclass to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc Ljdk/jfr/Event;
invokevirtual java.lang.Class.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.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 eventClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
eventClass
public static void writeGeneratedASM(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: getstatic jdk.jfr.internal.Utils.SAVE_GENERATED:Ljava/lang/Boolean;
ifnonnull 2
1: ldc "jfr.save.generated.asm"
invokestatic jdk.jfr.internal.SecuritySupport.getBooleanProperty:(Ljava/lang/String;)Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
putstatic jdk.jfr.internal.Utils.SAVE_GENERATED:Ljava/lang/Boolean;
2: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.Utils.SAVE_GENERATED:Ljava/lang/Boolean;
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 32
3: aconst_null
astore 2
aconst_null
astore 3
4: new java.io.FileOutputStream
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 4
start local 4 5: aload 4
aload 1
invokevirtual java.io.FileOutputStream.write:([B)V
6: aload 4
ifnull 12
aload 4
invokevirtual java.io.FileOutputStream.close:()V
goto 12
StackMap locals: java.lang.String byte[] java.lang.Throwable java.lang.Throwable java.io.FileOutputStream
StackMap stack: java.lang.Throwable
7: astore 2
aload 4
ifnull 8
aload 4
invokevirtual java.io.FileOutputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
8: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
aload 2
ifnonnull 10
aload 3
astore 2
goto 11
StackMap locals:
StackMap stack:
10: aload 2
aload 3
if_acmpeq 11
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
11: aload 2
athrow
12: StackMap locals:
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
13: new java.io.FileWriter
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".asm"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.FileWriter.<init>:(Ljava/lang/String;)V
astore 4
start local 4 14: new java.io.PrintWriter
dup
aload 4
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 5
start local 5 15: new jdk.internal.org.objectweb.asm.ClassReader
dup
aload 1
invokespecial jdk.internal.org.objectweb.asm.ClassReader.<init>:([B)V
astore 6
start local 6 16: aload 6
iconst_1
aload 5
invokestatic jdk.internal.org.objectweb.asm.util.CheckClassAdapter.verify:(Ljdk/internal/org/objectweb/asm/ClassReader;ZLjava/io/PrintWriter;)V
end local 6 17: aload 5
ifnull 20
aload 5
invokevirtual java.io.PrintWriter.close:()V
goto 20
StackMap locals: java.lang.String byte[] java.lang.Throwable java.lang.Throwable java.io.FileWriter java.io.PrintWriter
StackMap stack: java.lang.Throwable
18: astore 2
aload 5
ifnull 19
aload 5
invokevirtual java.io.PrintWriter.close:()V
end local 5 StackMap locals:
StackMap stack:
19: aload 2
athrow
StackMap locals:
StackMap stack:
20: aload 4
ifnull 28
aload 4
invokevirtual java.io.FileWriter.close:()V
goto 28
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 3
aload 2
ifnonnull 22
aload 3
astore 2
goto 23
StackMap locals:
StackMap stack:
22: aload 2
aload 3
if_acmpeq 23
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 4
ifnull 24
aload 4
invokevirtual java.io.FileWriter.close:()V
end local 4 StackMap locals:
StackMap stack:
24: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 3
aload 2
ifnonnull 26
aload 3
astore 2
goto 27
StackMap locals:
StackMap stack:
26: aload 2
aload 3
if_acmpeq 27
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 2
athrow
28: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM_BYTECODE:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.INFO:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Instrumented code saved to "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".class and .asm"
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
29: goto 32
StackMap locals:
StackMap stack: java.io.IOException
30: pop
31: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM_BYTECODE:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.INFO:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Could not save instrumented code, for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".class and .asm"
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
32: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 className Ljava/lang/String;
0 33 1 bytes [B
5 8 4 fos Ljava/io/FileOutputStream;
14 24 4 fw Ljava/io/FileWriter;
15 19 5 pw Ljava/io/PrintWriter;
16 17 6 cr Ljdk/internal/org/objectweb/asm/ClassReader;
Exception table:
from to target type
5 6 7 any
4 9 9 any
15 17 18 any
14 20 21 any
13 25 25 any
3 29 30 Class java.io.IOException
MethodParameters:
Name Flags
className
bytes
public static void ensureInitialized(java.lang.Class<? extends jdk.internal.event.Event>);
descriptor: (Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.jfr.internal.SecuritySupport.ensureClassIsInitialized:(Ljava/lang/Class;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 eventClass Ljava/lang/Class<+Ljdk/internal/event/Event;>;
Signature: (Ljava/lang/Class<+Ljdk/internal/event/Event;>;)V
MethodParameters:
Name Flags
eventClass
public static makePrimitiveArray(java.lang.String, java.util.List<java.lang.Object>);
descriptor: (Ljava/lang/String;Ljava/util/List;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=14, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.size:()I
istore 2
start local 2 1: aload 0
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 9
-1325958191: 2
104431: 3
3039496: 4
3052374: 5
3327612: 6
64711720: 7
97526364: 8
109413500: 9
1195259493: 10
default: 74
}
StackMap locals: int java.lang.String
StackMap stack:
2: aload 3
ldc "double"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 32
goto 74
StackMap locals:
StackMap stack:
3: aload 3
ldc "int"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
goto 74
StackMap locals:
StackMap stack:
4: aload 3
ldc "byte"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 53
goto 74
StackMap locals:
StackMap stack:
5: aload 3
ldc "char"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 46
goto 74
StackMap locals:
StackMap stack:
6: aload 3
ldc "long"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 18
goto 74
StackMap locals:
StackMap stack:
7: aload 3
ldc "boolean"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 60
goto 74
StackMap locals:
StackMap stack:
8: aload 3
ldc "float"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
goto 74
StackMap locals:
StackMap stack:
9: aload 3
ldc "short"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 39
goto 74
StackMap locals:
StackMap stack:
10: aload 3
ldc "java.lang.String"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 67
goto 74
11: StackMap locals:
StackMap stack:
iload 2
newarray 10
astore 4
start local 4 12: iconst_0
istore 5
start local 5 13: goto 16
14: StackMap locals: int[] int
StackMap stack:
aload 4
iload 5
aload 1
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iastore
15: iinc 5 1
StackMap locals:
StackMap stack:
16: iload 5
iload 2
if_icmplt 14
end local 5 17: aload 4
areturn
end local 4 18: StackMap locals:
StackMap stack:
iload 2
newarray 11
astore 5
start local 5 19: iconst_0
istore 6
start local 6 20: goto 23
21: StackMap locals: java.lang.String java.util.List int java.lang.String top long[] int
StackMap stack:
aload 5
iload 6
aload 1
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lastore
22: iinc 6 1
StackMap locals:
StackMap stack:
23: iload 6
iload 2
if_icmplt 21
end local 6 24: aload 5
areturn
end local 5 25: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
newarray 6
astore 6
start local 6 26: iconst_0
istore 7
start local 7 27: goto 30
28: StackMap locals: java.lang.String java.util.List int java.lang.String top top float[] int
StackMap stack:
aload 6
iload 7
aload 1
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Float
invokevirtual java.lang.Float.floatValue:()F
fastore
29: iinc 7 1
StackMap locals:
StackMap stack:
30: iload 7
iload 2
if_icmplt 28
end local 7 31: aload 6
areturn
end local 6 32: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
newarray 7
astore 7
start local 7 33: iconst_0
istore 8
start local 8 34: goto 37
35: StackMap locals: java.lang.String java.util.List int java.lang.String top top top double[] int
StackMap stack:
aload 7
iload 8
aload 1
iload 8
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
dastore
36: iinc 8 1
StackMap locals:
StackMap stack:
37: iload 8
iload 2
if_icmplt 35
end local 8 38: aload 7
areturn
end local 7 39: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
newarray 9
astore 8
start local 8 40: iconst_0
istore 9
start local 9 41: goto 44
42: StackMap locals: java.lang.String java.util.List int java.lang.String top top top top short[] int
StackMap stack:
aload 8
iload 9
aload 1
iload 9
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Short
invokevirtual java.lang.Short.shortValue:()S
sastore
43: iinc 9 1
StackMap locals:
StackMap stack:
44: iload 9
iload 2
if_icmplt 42
end local 9 45: aload 8
areturn
end local 8 46: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
newarray 5
astore 9
start local 9 47: iconst_0
istore 10
start local 10 48: goto 51
49: StackMap locals: java.lang.String java.util.List int java.lang.String top top top top top char[] int
StackMap stack:
aload 9
iload 10
aload 1
iload 10
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Character
invokevirtual java.lang.Character.charValue:()C
castore
50: iinc 10 1
StackMap locals:
StackMap stack:
51: iload 10
iload 2
if_icmplt 49
end local 10 52: aload 9
areturn
end local 9 53: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
newarray 8
astore 10
start local 10 54: iconst_0
istore 11
start local 11 55: goto 58
56: StackMap locals: java.lang.String java.util.List int java.lang.String top top top top top top byte[] int
StackMap stack:
aload 10
iload 11
aload 1
iload 11
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Byte
invokevirtual java.lang.Byte.byteValue:()B
bastore
57: iinc 11 1
StackMap locals:
StackMap stack:
58: iload 11
iload 2
if_icmplt 56
end local 11 59: aload 10
areturn
end local 10 60: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
newarray 4
astore 11
start local 11 61: iconst_0
istore 12
start local 12 62: goto 65
63: StackMap locals: java.lang.String java.util.List int java.lang.String top top top top top top top boolean[] int
StackMap stack:
aload 11
iload 12
aload 1
iload 12
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
bastore
64: iinc 12 1
StackMap locals:
StackMap stack:
65: iload 12
iload 2
if_icmplt 63
end local 12 66: aload 11
areturn
end local 11 67: StackMap locals: java.lang.String java.util.List int java.lang.String
StackMap stack:
iload 2
anewarray java.lang.String
astore 12
start local 12 68: iconst_0
istore 13
start local 13 69: goto 72
70: StackMap locals: java.lang.String java.util.List int java.lang.String top top top top top top top top java.lang.String[] int
StackMap stack:
aload 12
iload 13
aload 1
iload 13
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
aastore
71: iinc 13 1
StackMap locals:
StackMap stack:
72: iload 13
iload 2
if_icmplt 70
end local 13 73: aload 12
areturn
end local 12 74: StackMap locals: java.lang.String java.util.List int
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 75 0 typeName Ljava/lang/String;
0 75 1 values Ljava/util/List<Ljava/lang/Object;>;
1 75 2 length I
12 18 4 ints [I
13 17 5 i I
19 25 5 longs [J
20 24 6 i I
26 32 6 floats [F
27 31 7 i I
33 39 7 doubles [D
34 38 8 i I
40 46 8 shorts [S
41 45 9 i I
47 53 9 chars [C
48 52 10 i I
54 60 10 bytes [B
55 59 11 i I
61 67 11 booleans [Z
62 66 12 i I
68 74 12 strings [Ljava/lang/String;
69 73 13 i I
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/lang/Object;>;)Ljava/lang/Object;
MethodParameters:
Name Flags
typeName
values
public static boolean isSettingVisible(jdk.jfr.internal.Control, boolean);
descriptor: (Ljdk/jfr/internal/Control;Z)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
instanceof jdk.jfr.internal.settings.ThresholdSetting
ifeq 4
1: iload 1
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.jfr.internal.settings.PeriodSetting
ifeq 6
5: iload 1
ireturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.jfr.internal.settings.StackTraceSetting
ifeq 10
7: iload 1
ifeq 8
iconst_0
goto 9
StackMap locals:
StackMap stack:
8: iconst_1
StackMap locals:
StackMap stack: int
9: ireturn
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 c Ljdk/jfr/internal/Control;
0 11 1 hasEventHook Z
MethodParameters:
Name Flags
c
hasEventHook
public static boolean isSettingVisible(long, boolean);
descriptor: (JZ)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 2 0: lload 0
invokestatic jdk.jfr.internal.settings.ThresholdSetting.isType:(J)Z
ifeq 4
1: iload 2
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: ireturn
4: StackMap locals:
StackMap stack:
lload 0
invokestatic jdk.jfr.internal.settings.PeriodSetting.isType:(J)Z
ifeq 6
5: iload 2
ireturn
6: StackMap locals:
StackMap stack:
lload 0
invokestatic jdk.jfr.internal.settings.StackTraceSetting.isType:(J)Z
ifeq 10
7: iload 2
ifeq 8
iconst_0
goto 9
StackMap locals:
StackMap stack:
8: iconst_1
StackMap locals:
StackMap stack: int
9: ireturn
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 typeId J
0 11 2 hasEventHook Z
MethodParameters:
Name Flags
typeId
hasEventHook
public static jdk.jfr.internal.Type getValidType(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljdk/jfr/internal/Type;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
new java.lang.StringBuilder
dup
ldc "Null is not a valid type for value descriptor "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.lang.Class.isArray:()Z
ifeq 5
2: aload 0
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 0
3: aload 0
ldc Ljava/lang/String;
if_acmpeq 5
aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "Only arrays of primitives and Strings are allowed"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.jfr.internal.Type.getKnownType:(Ljava/lang/Class;)Ljdk/jfr/internal/Type;
astore 2
start local 2 6: aload 2
ifnull 7
aload 2
getstatic jdk.jfr.internal.Type.STACK_TRACE:Ljdk/jfr/internal/Type;
if_acmpne 8
7: StackMap locals: jdk.jfr.internal.Type
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Only primitive types, java.lang.Thread, java.lang.String and java.lang.Class are allowed for value descriptors. "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Class.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.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 type Ljava/lang/Class<*>;
0 9 1 name Ljava/lang/String;
6 9 2 knownType Ljdk/jfr/internal/Type;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljdk/jfr/internal/Type;
MethodParameters:
Name Flags
type
name
public static <T> java.util.List<T> smallUnmodifiable(java.util.List<T>);
descriptor: (Ljava/util/List;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
1: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 4
3: aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 list Ljava/util/List<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/util/List<TT;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
list
public static java.lang.String upgradeLegacyJDKEvent(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
ldc "com.oracle.jdk."
invokevirtual java.lang.String.length:()I
if_icmpgt 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "com.oracle.jdk."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
3: aload 0
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 1
start local 1 4: iload 1
ldc "com.oracle.jdk."
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpne 6
5: new java.lang.StringBuilder
dup
ldc "jdk."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)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 1 6: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 eventName Ljava/lang/String;
4 6 1 index I
MethodParameters:
Name Flags
eventName
public static void verifyMirror(java.lang.Class<?>, java.lang.Class<?>);
descriptor: (Ljava/lang/Class;Ljava/lang/Class;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=11, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 2
start local 2 1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Class
astore 3
start local 3 2: goto 30
3: StackMap locals: java.lang.Class java.lang.Class
StackMap stack:
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 4: aload 2
ifnull 11
5: aload 2
invokevirtual java.lang.Class.getDeclaredFields:()[Ljava/lang/reflect/Field;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 10
StackMap locals: java.lang.Class java.lang.Class java.lang.Class java.lang.Class java.util.Map top int int java.lang.reflect.Field[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 5
invokevirtual java.lang.reflect.Field.getType:()Ljava/lang/Class;
invokestatic jdk.jfr.internal.Utils.isSupportedType:(Ljava/lang/Class;)Z
ifeq 9
8: aload 4
aload 5
invokevirtual java.lang.reflect.Field.getName:()Ljava/lang/String;
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 9: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
iload 7
if_icmplt 6
11: StackMap locals: java.lang.Class java.lang.Class java.lang.Class java.lang.Class java.util.Map
StackMap stack:
aload 3
invokevirtual java.lang.Class.getDeclaredFields:()[Ljava/lang/reflect/Field;
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 22
StackMap locals: java.lang.Class java.lang.Class java.lang.Class java.lang.Class java.util.Map top int int java.lang.reflect.Field[]
StackMap stack:
12: aload 8
iload 6
aaload
astore 5
start local 5 13: aload 5
invokevirtual java.lang.reflect.Field.getType:()Ljava/lang/Class;
invokestatic jdk.jfr.internal.Utils.isSupportedType:(Ljava/lang/Class;)Z
ifeq 21
14: aload 5
invokevirtual java.lang.reflect.Field.getName:()Ljava/lang/String;
astore 9
start local 9 15: aload 4
aload 9
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.reflect.Field
astore 10
start local 10 16: aload 10
ifnonnull 18
17: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Missing mirror field for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Class.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 9
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
18: StackMap locals: java.lang.Class java.lang.Class java.lang.Class java.lang.Class java.util.Map java.lang.reflect.Field int int java.lang.reflect.Field[] java.lang.String java.lang.reflect.Field
StackMap stack:
aload 5
invokevirtual java.lang.reflect.Field.getModifiers:()I
aload 10
invokevirtual java.lang.reflect.Field.getModifiers:()I
if_icmpeq 20
19: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "Incorrect modifier for mirror field "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Class.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 9
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
20: StackMap locals:
StackMap stack:
aload 4
aload 9
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 10 end local 9 end local 5 21: StackMap locals: java.lang.Class java.lang.Class java.lang.Class java.lang.Class java.util.Map top int int java.lang.reflect.Field[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
22: iload 6
iload 7
if_icmplt 12
23: aload 4
invokeinterface java.util.Map.isEmpty:()Z
ifne 27
24: new java.lang.InternalError
dup
25: new java.lang.StringBuilder
dup
ldc "Found additional fields in mirror class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Class.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 4
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
26: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals: java.lang.Class java.lang.Class java.lang.Class java.lang.Class java.util.Map
StackMap stack:
aload 2
ifnull 29
28: aload 2
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 2
29: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 3
end local 4 30: StackMap locals:
StackMap stack:
aload 3
ifnonnull 3
31: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 mirror Ljava/lang/Class<*>;
0 32 1 real Ljava/lang/Class<*>;
1 32 2 cMirror Ljava/lang/Class<*>;
2 32 3 cReal Ljava/lang/Class<*>;
4 30 4 mirrorFields Ljava/util/Map<Ljava/lang/String;Ljava/lang/reflect/Field;>;
7 9 5 f Ljava/lang/reflect/Field;
13 21 5 realField Ljava/lang/reflect/Field;
15 21 9 fieldName Ljava/lang/String;
16 21 10 mirrorField Ljava/lang/reflect/Field;
Signature: (Ljava/lang/Class<*>;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
mirror
real
private static boolean isSupportedType(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isTransient:(I)Z
ifne 1
aload 0
invokevirtual java.lang.Class.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic jdk.jfr.internal.Type.isValidJavaFieldType:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 type Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
type
public static java.lang.String makeFilename(jdk.jfr.Recording);
descriptor: (Ljdk/jfr/Recording;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.getPid:()Ljava/lang/String;
astore 1
start local 1 1: invokestatic java.time.LocalDateTime.now:()Ljava/time/LocalDateTime;
invokestatic jdk.jfr.internal.Utils.formatDateTime:(Ljava/time/LocalDateTime;)Ljava/lang/String;
astore 2
start local 2 2: aload 0
ifnonnull 3
ldc ""
goto 4
StackMap locals: java.lang.String java.lang.String
StackMap stack:
3: new java.lang.StringBuilder
dup
ldc "-id-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.jfr.Recording.getId:()J
invokestatic java.lang.Long.toString:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
4: astore 3
start local 3 5: new java.lang.StringBuilder
dup
ldc "hotspot-pid-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".jfr"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 recording Ljdk/jfr/Recording;
1 6 1 pid Ljava/lang/String;
2 6 2 date Ljava/lang/String;
5 6 3 idText Ljava/lang/String;
MethodParameters:
Name Flags
recording
public static java.lang.String formatDuration(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic jdk.jfr.internal.Utils.roundDuration:(Ljava/time/Duration;)Ljava/time/Duration;
astore 1
start local 1 1: aload 1
getstatic java.time.Duration.ZERO:Ljava/time/Duration;
invokevirtual java.time.Duration.equals:(Ljava/lang/Object;)Z
ifeq 3
2: ldc "0 s"
areturn
3: StackMap locals: java.time.Duration
StackMap stack:
aload 1
invokevirtual java.time.Duration.isNegative:()Z
ifeq 5
4: new java.lang.StringBuilder
dup
ldc "-"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.time.Duration.abs:()Ljava/time/Duration;
invokestatic jdk.jfr.internal.Utils.formatPositiveDuration:(Ljava/time/Duration;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
5: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.jfr.internal.Utils.formatPositiveDuration:(Ljava/time/Duration;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 d Ljava/time/Duration;
1 6 1 roundedDuration Ljava/time/Duration;
MethodParameters:
Name Flags
d
private static java.lang.String formatPositiveDuration(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: aload 0
getstatic jdk.jfr.internal.Utils.MICRO_SECOND:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 3
1: aload 0
invokevirtual java.time.Duration.toNanosPart:()I
i2d
ldc 1000000.0
ddiv
dstore 1
start local 1 2: ldc "%.6f ms"
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 1
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 3: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.SECOND:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 8
4: aload 0
invokevirtual java.time.Duration.toNanosPart:()I
i2l
invokestatic jdk.jfr.internal.Utils.countLength:(J)I
istore 1
start local 1 5: bipush 9
iload 1
isub
istore 2
start local 2 6: aload 0
invokevirtual java.time.Duration.toNanosPart:()I
i2d
ldc 1000000.0
ddiv
dstore 3
start local 3 7: new java.lang.StringBuilder
dup
ldc "%."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "f ms"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 8: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.MINUTE:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 13
9: aload 0
invokevirtual java.time.Duration.toSecondsPart:()I
i2l
invokestatic jdk.jfr.internal.Utils.countLength:(J)I
istore 1
start local 1 10: iconst_3
iload 1
isub
istore 2
start local 2 11: aload 0
invokevirtual java.time.Duration.toSecondsPart:()I
i2d
aload 0
invokevirtual java.time.Duration.toMillisPart:()I
i2d
ldc 1000.0
ddiv
dadd
dstore 3
start local 3 12: new java.lang.StringBuilder
dup
ldc "%."
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "f s"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
dload 3
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 13: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.HOUR:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 15
14: ldc "%d m %d s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.time.Duration.toMinutesPart:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
invokevirtual java.time.Duration.toSecondsPart:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
15: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.DAY:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 17
16: ldc "%d h %d m"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.time.Duration.toHoursPart:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
invokevirtual java.time.Duration.toMinutesPart:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
17: StackMap locals:
StackMap stack:
ldc "%d d %d h"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.time.Duration.toDaysPart:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
aload 0
invokevirtual java.time.Duration.toHoursPart:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 d Ljava/time/Duration;
2 3 1 outputMs D
5 8 1 valueLength I
6 8 2 outputDigit I
7 8 3 outputMs D
10 13 1 valueLength I
11 13 2 outputDigit I
12 13 3 outputSecond D
MethodParameters:
Name Flags
d
private static int countLength(long);
descriptor: (J)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: lload 0
l2d
invokestatic java.lang.Math.log10:(D)D
d2i
iconst_1
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value J
MethodParameters:
Name Flags
value
private static java.time.Duration roundDuration(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljava/time/Duration;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getstatic java.time.Duration.ZERO:Ljava/time/Duration;
invokevirtual java.time.Duration.equals:(Ljava/lang/Object;)Z
ifeq 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.time.Duration.isNegative:()Z
ifeq 5
3: aload 0
invokevirtual java.time.Duration.abs:()Ljava/time/Duration;
invokestatic jdk.jfr.internal.Utils.roundPositiveDuration:(Ljava/time/Duration;)Ljava/time/Duration;
astore 1
start local 1 4: aload 1
invokevirtual java.time.Duration.negated:()Ljava/time/Duration;
areturn
end local 1 5: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.jfr.internal.Utils.roundPositiveDuration:(Ljava/time/Duration;)Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 d Ljava/time/Duration;
4 5 1 roundedPositiveDuration Ljava/time/Duration;
MethodParameters:
Name Flags
d
private static java.time.Duration roundPositiveDuration(java.time.Duration);
descriptor: (Ljava/time/Duration;)Ljava/time/Duration;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
getstatic jdk.jfr.internal.Utils.MICRO_SECOND:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.SECOND:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 7
3: aload 0
invokevirtual java.time.Duration.toNanosPart:()I
i2l
invokestatic jdk.jfr.internal.Utils.countLength:(J)I
istore 1
start local 1 4: ldc 10.0
iload 1
iconst_3
isub
i2d
invokestatic java.lang.Math.pow:(DD)D
d2i
istore 2
start local 2 5: aload 0
invokevirtual java.time.Duration.toNanosPart:()I
i2d
iload 2
i2d
ddiv
invokestatic java.lang.Math.round:(D)J
iload 2
i2l
lmul
lstore 3
start local 3 6: aload 0
getstatic java.time.temporal.ChronoUnit.SECONDS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.Duration.truncatedTo:(Ljava/time/temporal/TemporalUnit;)Ljava/time/Duration;
lload 3
invokevirtual java.time.Duration.plusNanos:(J)Ljava/time/Duration;
areturn
end local 3 end local 2 end local 1 7: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.MINUTE:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 12
8: aload 0
invokevirtual java.time.Duration.toSecondsPart:()I
i2l
invokestatic jdk.jfr.internal.Utils.countLength:(J)I
istore 1
start local 1 9: ldc 10.0
iload 1
i2d
invokestatic java.lang.Math.pow:(DD)D
d2i
istore 2
start local 2 10: aload 0
invokevirtual java.time.Duration.toMillisPart:()I
i2d
iload 2
i2d
ddiv
invokestatic java.lang.Math.round:(D)J
iload 2
i2l
lmul
lstore 3
start local 3 11: aload 0
getstatic java.time.temporal.ChronoUnit.SECONDS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.Duration.truncatedTo:(Ljava/time/temporal/TemporalUnit;)Ljava/time/Duration;
lload 3
invokevirtual java.time.Duration.plusMillis:(J)Ljava/time/Duration;
areturn
end local 3 end local 2 end local 1 12: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.HOUR:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 14
13: aload 0
getstatic jdk.jfr.internal.Utils.SECOND:Ljava/time/Duration;
ldc 2
invokevirtual java.time.Duration.dividedBy:(J)Ljava/time/Duration;
invokevirtual java.time.Duration.toMillisPart:()I
i2l
invokevirtual java.time.Duration.plusMillis:(J)Ljava/time/Duration;
getstatic java.time.temporal.ChronoUnit.SECONDS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.Duration.truncatedTo:(Ljava/time/temporal/TemporalUnit;)Ljava/time/Duration;
areturn
14: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.DAY:Ljava/time/Duration;
invokevirtual java.time.Duration.compareTo:(Ljava/time/Duration;)I
ifge 16
15: aload 0
getstatic jdk.jfr.internal.Utils.MINUTE:Ljava/time/Duration;
ldc 2
invokevirtual java.time.Duration.dividedBy:(J)Ljava/time/Duration;
invokevirtual java.time.Duration.toSecondsPart:()I
i2l
invokevirtual java.time.Duration.plusSeconds:(J)Ljava/time/Duration;
getstatic java.time.temporal.ChronoUnit.MINUTES:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.Duration.truncatedTo:(Ljava/time/temporal/TemporalUnit;)Ljava/time/Duration;
areturn
16: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.jfr.internal.Utils.HOUR:Ljava/time/Duration;
ldc 2
invokevirtual java.time.Duration.dividedBy:(J)Ljava/time/Duration;
invokevirtual java.time.Duration.toMinutesPart:()I
i2l
invokevirtual java.time.Duration.plusMinutes:(J)Ljava/time/Duration;
getstatic java.time.temporal.ChronoUnit.HOURS:Ljava/time/temporal/ChronoUnit;
invokevirtual java.time.Duration.truncatedTo:(Ljava/time/temporal/TemporalUnit;)Ljava/time/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 d Ljava/time/Duration;
4 7 1 valueLength I
5 7 2 roundValue I
6 7 3 roundedNanos J
9 12 1 valueLength I
10 12 2 roundValue I
11 12 3 roundedMills J
MethodParameters:
Name Flags
d
public static void takeNap(long);
descriptor: (J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: lload 0
invokestatic java.lang.Thread.sleep:(J)V
1: goto 3
StackMap locals:
StackMap stack: java.lang.InterruptedException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 millis J
Exception table:
from to target type
0 1 2 Class java.lang.InterruptedException
MethodParameters:
Name Flags
millis
public static void notifyFlush();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic jdk.jfr.internal.Utils.flushObject:Ljava/lang/Object;
dup
astore 0
monitorenter
1: getstatic jdk.jfr.internal.Utils.flushObject:Ljava/lang/Object;
invokevirtual java.lang.Object.notifyAll:()V
2: aload 0
monitorexit
3: goto 6
StackMap locals: java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 0
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 3 4 any
4 5 4 any
public static void waitFlush(long);
descriptor: (J)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic jdk.jfr.internal.Utils.flushObject:Ljava/lang/Object;
dup
astore 2
monitorenter
1: getstatic jdk.jfr.internal.Utils.flushObject:Ljava/lang/Object;
lload 0
invokevirtual java.lang.Object.wait:(J)V
2: goto 4
StackMap locals: long java.lang.Object
StackMap stack: java.lang.InterruptedException
3: pop
4: StackMap locals:
StackMap stack:
aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 timeOut J
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
timeOut
public static long timeToNanos(java.time.Instant);
descriptor: (Ljava/time/Instant;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.time.Instant.getEpochSecond:()J
ldc 1000000000
lmul
aload 0
invokevirtual java.time.Instant.getNano:()I
i2l
ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 timestamp Ljava/time/Instant;
MethodParameters:
Name Flags
timestamp
}
SourceFile: "Utils.java"
NestMembers:
jdk.jfr.internal.Utils$TimespanUnit
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
private final TimespanUnit = jdk.jfr.internal.Utils$TimespanUnit of jdk.jfr.internal.Utils