public final class jdk.jfr.internal.OldObjectSample
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.OldObjectSample
super_class: java.lang.Object
{
private static final java.lang.String EVENT_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.OldObjectSample"
private static final java.lang.String OLD_OBJECT_CUTOFF;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.OldObjectSample#cutoff"
private static final java.lang.String OLD_OBJECT_ENABLED;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.OldObjectSample#enabled"
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/OldObjectSample;
public static void emit(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokestatic jdk.jfr.internal.OldObjectSample.isEnabled:(Ljdk/jfr/internal/PlatformRecording;)Z
ifeq 4
1: aload 0
invokevirtual jdk.jfr.internal.PlatformRecording.getSettings:()Ljava/util/Map;
ldc "jdk.OldObjectSample#cutoff"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic jdk.jfr.internal.settings.CutoffSetting.parseValueSafe:(Ljava/lang/String;)J
lstore 1
start local 1 2: lload 1
invokestatic jdk.jfr.internal.Utils.nanosToTicks:(J)J
lstore 3
start local 3 3: lload 3
invokestatic jdk.jfr.internal.OldObjectSample.emit:(J)V
end local 3 end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 recording Ljdk/jfr/internal/PlatformRecording;
2 4 1 nanos J
3 4 3 ticks J
MethodParameters:
Name Flags
recording
public static void emit(java.util.List<jdk.jfr.internal.PlatformRecording>, java.lang.Boolean);
descriptor: (Ljava/util/List;Ljava/lang/Boolean;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
aload 1
invokevirtual java.lang.Boolean.equals:(Ljava/lang/Object;)Z
ifeq 2
ldc 9223372036854775807
goto 3
StackMap locals: int
StackMap stack:
2: lconst_0
StackMap locals:
StackMap stack: long
3: lstore 3
start local 3 4: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: java.util.List java.lang.Boolean int long top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 5
start local 5 6: aload 5
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 11
7: aload 5
invokestatic jdk.jfr.internal.OldObjectSample.isEnabled:(Ljdk/jfr/internal/PlatformRecording;)Z
ifeq 11
8: iconst_1
istore 2
9: aload 5
invokevirtual jdk.jfr.internal.PlatformRecording.getSettings:()Ljava/util/Map;
ldc "jdk.OldObjectSample#cutoff"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic jdk.jfr.internal.settings.CutoffSetting.parseValueSafe:(Ljava/lang/String;)J
lstore 7
start local 7 10: lload 7
lload 3
invokestatic java.lang.Math.max:(JJ)J
lstore 3
end local 7 end local 5 11: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
12: iload 2
ifeq 15
13: lload 3
invokestatic jdk.jfr.internal.Utils.nanosToTicks:(J)J
lstore 5
start local 5 14: lload 5
invokestatic jdk.jfr.internal.OldObjectSample.emit:(J)V
end local 5 15: StackMap locals: java.util.List java.lang.Boolean int long
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 recordings Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;
0 16 1 pathToGcRoots Ljava/lang/Boolean;
1 16 2 enabled Z
4 16 3 cutoffNanos J
6 11 5 r Ljdk/jfr/internal/PlatformRecording;
10 11 7 c J
14 15 5 ticks J
Signature: (Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;Ljava/lang/Boolean;)V
MethodParameters:
Name Flags
recordings
pathToGcRoots
private static void emit(long);
descriptor: (J)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: invokestatic jdk.jfr.internal.test.WhiteBox.getWriteAllObjectSamples:()Z
istore 2
start local 2 1: invokestatic jdk.jfr.internal.test.WhiteBox.getSkipBFS:()Z
istore 3
start local 3 2: invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
lload 0
iload 2
iload 3
invokevirtual jdk.jfr.internal.JVM.emitOldObjectSamples:(JZZ)V
3: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ticks J
1 4 2 emitAll Z
2 4 3 skipBFS Z
MethodParameters:
Name Flags
ticks
public static void updateSettingPathToGcRoots(java.util.Map<java.lang.String, java.lang.String>, java.lang.Boolean);
descriptor: (Ljava/util/Map;Ljava/lang/Boolean;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 4
1: aload 0
ldc "jdk.OldObjectSample#cutoff"
aload 1
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
ldc "infinity"
goto 3
StackMap locals: java.util.Map java.lang.Boolean
StackMap stack: java.util.Map java.lang.String
2: ldc "0 ns"
StackMap locals: java.util.Map java.lang.Boolean
StackMap stack: java.util.Map java.lang.String java.lang.String
3: invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 5 1 pathToGcRoots Ljava/lang/Boolean;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;Ljava/lang/Boolean;)V
MethodParameters:
Name Flags
s
pathToGcRoots
public static java.util.Map<java.lang.String, java.lang.String> createSettingsForSnapshot(jdk.jfr.internal.PlatformRecording, java.lang.Boolean);
descriptor: (Ljdk/jfr/internal/PlatformRecording;Ljava/lang/Boolean;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
aload 0
invokevirtual jdk.jfr.internal.PlatformRecording.getSettings:()Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 2
start local 2 1: aload 2
aload 1
invokestatic jdk.jfr.internal.OldObjectSample.updateSettingPathToGcRoots:(Ljava/util/Map;Ljava/lang/Boolean;)V
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 recording Ljdk/jfr/internal/PlatformRecording;
0 3 1 pathToGcRoots Ljava/lang/Boolean;
1 3 2 settings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljdk/jfr/internal/PlatformRecording;Ljava/lang/Boolean;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
recording
pathToGcRoots
private static boolean isEnabled(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jfr.internal.PlatformRecording.getSettings:()Ljava/util/Map;
astore 1
start local 1 1: aload 1
ldc "jdk.OldObjectSample#enabled"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: ldc "true"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 r Ljdk/jfr/internal/PlatformRecording;
1 3 1 settings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
2 3 2 s Ljava/lang/String;
MethodParameters:
Name Flags
r
}
SourceFile: "OldObjectSample.java"