public final class jdk.jfr.internal.PlatformRecorder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.PlatformRecorder
super_class: java.lang.Object
{
private final java.util.List<jdk.jfr.internal.PlatformRecording> recordings;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;
private static final java.util.List<jdk.jfr.internal.SecuritySupport$SecureRecorderListener> changeListeners;
descriptor: Ljava/util/List;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/List<Ljdk/jfr/internal/SecuritySupport$SecureRecorderListener;>;
private final jdk.jfr.internal.Repository repository;
descriptor: Ljdk/jfr/internal/Repository;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final jdk.jfr.internal.JVM jvm;
descriptor: Ljdk/jfr/internal/JVM;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final jdk.jfr.EventType activeRecordingEvent;
descriptor: Ljdk/jfr/EventType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jfr.EventType activeSettingEvent;
descriptor: Ljdk/jfr/EventType;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Thread shutdownHook;
descriptor: Ljava/lang/Thread;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Timer timer;
descriptor: Ljava/util/Timer;
flags: (0x0002) ACC_PRIVATE
private long recordingCounter;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private jdk.jfr.internal.RepositoryChunk currentChunk;
descriptor: Ljdk/jfr/internal/RepositoryChunk;
flags: (0x0002) ACC_PRIVATE
private boolean inShutdown;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic jdk.jfr.internal.PlatformRecorder.changeListeners:Ljava/util/List;
1: invokestatic jdk.jfr.internal.JVM.getJVM:()Ljdk/jfr/internal/JVM;
putstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
2: aload 0
lconst_0
putfield jdk.jfr.internal.PlatformRecorder.recordingCounter:J
3: aload 0
invokestatic jdk.jfr.internal.Repository.getRepository:()Ljdk/jfr/internal/Repository;
putfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
4: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.INFO:Ljdk/jfr/internal/LogLevel;
ldc "Initialized disk repository"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
5: aload 0
getfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
invokevirtual jdk.jfr.internal.Repository.ensureRepository:()V
6: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.createNativeJFR:()V
7: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.INFO:Ljdk/jfr/internal/LogLevel;
ldc "Created native"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
8: invokestatic jdk.jfr.internal.instrument.JDKEvents.initialize:()V
9: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.INFO:Ljdk/jfr/internal/LogLevel;
ldc "Registered JDK events"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
10: invokestatic jdk.jfr.internal.instrument.JDKEvents.addInstrumentation:()V
11: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.startDiskMonitor:()V
12: aload 0
ldc Ljdk/jfr/events/ActiveRecordingEvent;
invokestatic jdk.jfr.EventType.getEventType:(Ljava/lang/Class;)Ljdk/jfr/EventType;
putfield jdk.jfr.internal.PlatformRecorder.activeRecordingEvent:Ljdk/jfr/EventType;
13: aload 0
ldc Ljdk/jfr/events/ActiveSettingEvent;
invokestatic jdk.jfr.EventType.getEventType:(Ljava/lang/Class;)Ljdk/jfr/EventType;
putfield jdk.jfr.internal.PlatformRecorder.activeSettingEvent:Ljdk/jfr/EventType;
14: aload 0
ldc "JFR Shutdown Hook"
new jdk.jfr.internal.ShutdownHook
dup
aload 0
invokespecial jdk.jfr.internal.ShutdownHook.<init>:(Ljdk/jfr/internal/PlatformRecorder;)V
invokestatic jdk.jfr.internal.SecuritySupport.createThreadWitNoPermissions:(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Thread;
putfield jdk.jfr.internal.PlatformRecorder.shutdownHook:Ljava/lang/Thread;
15: aload 0
getfield jdk.jfr.internal.PlatformRecorder.shutdownHook:Ljava/lang/Thread;
new jdk.jfr.internal.ShutdownHook$ExceptionHandler
dup
invokespecial jdk.jfr.internal.ShutdownHook$ExceptionHandler.<init>:()V
invokestatic jdk.jfr.internal.SecuritySupport.setUncaughtExceptionHandler:(Ljava/lang/Thread;Ljava/lang/Thread$UncaughtExceptionHandler;)V
16: aload 0
getfield jdk.jfr.internal.PlatformRecorder.shutdownHook:Ljava/lang/Thread;
invokestatic jdk.jfr.internal.SecuritySupport.registerShutdownHook:(Ljava/lang/Thread;)V
17: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/jfr/internal/PlatformRecorder;
Exceptions:
throws java.lang.Exception
private static java.util.Timer createTimer();
descriptor: ()Ljava/util/Timer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=0
0: new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
astore 0
start local 0 1: ldc "Permissionless thread"
aload 0
invokedynamic run(Ljava/util/List;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/jfr/internal/PlatformRecorder.lambda$0(Ljava/util/List;)V (6)
()V
invokestatic jdk.jfr.internal.SecuritySupport.createThreadWitNoPermissions:(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 1
start local 1 2: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
aload 1
invokevirtual jdk.jfr.internal.JVM.exclude:(Ljava/lang/Thread;)V
3: aload 1
invokevirtual java.lang.Thread.start:()V
4: aload 1
invokevirtual java.lang.Thread.join:()V
5: aload 0
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.util.Timer
6: areturn
end local 1 end local 0 7: StackMap locals:
StackMap stack: java.lang.InterruptedException
astore 0
start local 0 8: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Not able to create timer task. "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.InterruptedException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 0
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 7 0 result Ljava/util/List<Ljava/util/Timer;>;
2 7 1 t Ljava/lang/Thread;
8 9 0 e Ljava/lang/InterruptedException;
Exception table:
from to target type
0 6 7 Class java.lang.InterruptedException
public synchronized jdk.jfr.internal.PlatformRecording newRecording(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)Ljdk/jfr/internal/PlatformRecording;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
dup
getfield jdk.jfr.internal.PlatformRecorder.recordingCounter:J
lconst_1
ladd
dup2_x1
putfield jdk.jfr.internal.PlatformRecorder.recordingCounter:J
invokevirtual jdk.jfr.internal.PlatformRecorder.newRecording:(Ljava/util/Map;J)Ljdk/jfr/internal/PlatformRecording;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/PlatformRecorder;
0 1 1 settings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)Ljdk/jfr/internal/PlatformRecording;
MethodParameters:
Name Flags
settings
public jdk.jfr.internal.PlatformRecording newTemporaryRecording();
descriptor: ()Ljdk/jfr/internal/PlatformRecording;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 2
1: new java.lang.InternalError
dup
ldc "Caller must have recorder lock"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
lconst_0
invokevirtual jdk.jfr.internal.PlatformRecorder.newRecording:(Ljava/util/Map;J)Ljdk/jfr/internal/PlatformRecording;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/PlatformRecorder;
private synchronized jdk.jfr.internal.PlatformRecording newRecording(java.util.Map<java.lang.String, java.lang.String>, long);
descriptor: (Ljava/util/Map;J)Ljdk/jfr/internal/PlatformRecording;
flags: (0x0022) ACC_PRIVATE, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new jdk.jfr.internal.PlatformRecording
dup
aload 0
lload 2
invokespecial jdk.jfr.internal.PlatformRecording.<init>:(Ljdk/jfr/internal/PlatformRecorder;J)V
astore 4
start local 4 1: aload 1
invokeinterface java.util.Map.isEmpty:()Z
ifne 3
2: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.setSettings:(Ljava/util/Map;)V
3: StackMap locals: jdk.jfr.internal.PlatformRecording
StackMap stack:
aload 0
getfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 4
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/PlatformRecorder;
0 5 1 settings Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
0 5 2 id J
1 5 4 recording Ljdk/jfr/internal/PlatformRecording;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;J)Ljdk/jfr/internal/PlatformRecording;
MethodParameters:
Name Flags
settings
id
synchronized void finish(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 2
1: aload 1
ldc "Recording closed"
invokevirtual jdk.jfr.internal.PlatformRecording.stop:(Ljava/lang/String;)Z
pop
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/PlatformRecorder;
0 4 1 recording Ljdk/jfr/internal/PlatformRecording;
MethodParameters:
Name Flags
recording
public synchronized java.util.List<jdk.jfr.internal.PlatformRecording> getRecordings();
descriptor: ()Ljava/util/List;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/PlatformRecorder;
Signature: ()Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;
public static synchronized void addListener(jdk.jfr.FlightRecorderListener);
descriptor: (Ljdk/jfr/FlightRecorderListener;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=1
start local 0 0: invokestatic java.security.AccessController.getContext:()Ljava/security/AccessControlContext;
astore 1
start local 1 1: new jdk.jfr.internal.SecuritySupport$SecureRecorderListener
dup
aload 1
aload 0
invokespecial jdk.jfr.internal.SecuritySupport$SecureRecorderListener.<init>:(Ljava/security/AccessControlContext;Ljdk/jfr/FlightRecorderListener;)V
astore 2
start local 2 2: ldc Ljdk/jfr/internal/PlatformRecorder;
dup
astore 4
monitorenter
3: invokestatic jdk.jfr.FlightRecorder.isInitialized:()Z
istore 3
start local 3 4: getstatic jdk.jfr.internal.PlatformRecorder.changeListeners:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 4
monitorexit
6: goto 9
end local 3 StackMap locals: jdk.jfr.FlightRecorderListener java.security.AccessControlContext jdk.jfr.internal.SecuritySupport$SecureRecorderListener top java.lang.Class
StackMap stack: java.lang.Throwable
7: aload 4
monitorexit
8: athrow
start local 3 9: StackMap locals: jdk.jfr.FlightRecorderListener java.security.AccessControlContext jdk.jfr.internal.SecuritySupport$SecureRecorderListener int
StackMap stack:
iload 3
ifeq 11
10: aload 2
invokestatic jdk.jfr.FlightRecorder.getFlightRecorder:()Ljdk/jfr/FlightRecorder;
invokevirtual jdk.jfr.internal.SecuritySupport$SecureRecorderListener.recorderInitialized:(Ljdk/jfr/FlightRecorder;)V
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 changeListener Ljdk/jfr/FlightRecorderListener;
1 12 1 context Ljava/security/AccessControlContext;
2 12 2 sl Ljdk/jfr/internal/SecuritySupport$SecureRecorderListener;
4 7 3 runInitialized Z
9 12 3 runInitialized Z
Exception table:
from to target type
3 6 7 any
7 8 7 any
MethodParameters:
Name Flags
changeListener
public static synchronized boolean removeListener(jdk.jfr.FlightRecorderListener);
descriptor: (Ljdk/jfr/FlightRecorderListener;)Z
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.util.ArrayList
dup
getstatic jdk.jfr.internal.PlatformRecorder.changeListeners:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 2
goto 5
StackMap locals: jdk.jfr.FlightRecorderListener top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.SecuritySupport$SecureRecorderListener
astore 1
start local 1 2: aload 1
invokevirtual jdk.jfr.internal.SecuritySupport$SecureRecorderListener.getChangeListener:()Ljdk/jfr/FlightRecorderListener;
aload 0
if_acmpne 5
3: getstatic jdk.jfr.internal.PlatformRecorder.changeListeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
4: iconst_1
ireturn
end local 1 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 changeListener Ljdk/jfr/FlightRecorderListener;
2 5 1 s Ljdk/jfr/internal/SecuritySupport$SecureRecorderListener;
MethodParameters:
Name Flags
changeListener
static synchronized java.util.List<jdk.jfr.FlightRecorderListener> getListeners();
descriptor: ()Ljava/util/List;
flags: (0x0028) ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=0, args_size=0
0: new java.util.ArrayList
dup
getstatic jdk.jfr.internal.PlatformRecorder.changeListeners:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljdk/jfr/FlightRecorderListener;>;
synchronized java.util.Timer getTimer();
descriptor: ()Ljava/util/Timer;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.PlatformRecorder.timer:Ljava/util/Timer;
ifnonnull 2
1: aload 0
invokestatic jdk.jfr.internal.PlatformRecorder.createTimer:()Ljava/util/Timer;
putfield jdk.jfr.internal.PlatformRecorder.timer:Ljava/util/Timer;
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.PlatformRecorder.timer:Ljava/util/Timer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jfr/internal/PlatformRecorder;
public static void notifyRecorderInitialized(jdk.jfr.FlightRecorder);
descriptor: (Ljdk/jfr/FlightRecorder;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.TRACE:Ljdk/jfr/internal/LogLevel;
ldc "Notifying listeners that Flight Recorder is initialized"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
1: invokestatic jdk.jfr.internal.PlatformRecorder.getListeners:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: jdk.jfr.FlightRecorder top java.util.Iterator
StackMap stack:
2: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.FlightRecorderListener
astore 1
start local 1 3: aload 1
aload 0
invokeinterface jdk.jfr.FlightRecorderListener.recorderInitialized:(Ljdk/jfr/FlightRecorder;)V
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 recorder Ljdk/jfr/FlightRecorder;
3 4 1 r Ljdk/jfr/FlightRecorderListener;
MethodParameters:
Name Flags
recorder
synchronized void setInShutDown();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.jfr.internal.PlatformRecorder.inShutdown:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/PlatformRecorder;
synchronized void destroy();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.PlatformRecorder.timer:Ljava/util/Timer;
ifnull 5
1: aload 0
getfield jdk.jfr.internal.PlatformRecorder.timer:Ljava/util/Timer;
invokevirtual java.util.Timer.cancel:()V
2: goto 5
StackMap locals:
StackMap stack: java.lang.Exception
3: pop
4: getstatic jdk.jfr.internal.LogTag.JFR_SYSTEM:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.WARN:Ljdk/jfr/internal/LogLevel;
ldc "Shutdown hook could not cancel timer"
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 12
StackMap locals: jdk.jfr.internal.PlatformRecorder top java.util.Iterator
StackMap stack:
6: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 1
start local 1 7: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 12
8: aload 1
ldc "Shutdown"
invokevirtual jdk.jfr.internal.PlatformRecording.stop:(Ljava/lang/String;)Z
pop
9: goto 12
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.util.Iterator
StackMap stack: java.lang.Exception
10: pop
11: getstatic jdk.jfr.internal.LogTag.JFR:Ljdk/jfr/internal/LogTag;
getstatic jdk.jfr.internal.LogLevel.WARN:Ljdk/jfr/internal/LogLevel;
new java.lang.StringBuilder
dup
ldc "Recording "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.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 1
invokevirtual jdk.jfr.internal.PlatformRecording.getId:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " could not be stopped"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/lang/String;)V
end local 1 12: StackMap locals: jdk.jfr.internal.PlatformRecorder top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
13: invokestatic jdk.jfr.internal.instrument.JDKEvents.remove:()V
14: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.hasNativeJFR:()Z
ifeq 18
15: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.isRecording:()Z
ifeq 17
16: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.endRecording:()V
17: StackMap locals: jdk.jfr.internal.PlatformRecorder
StackMap stack:
getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.destroyNativeJFR:()Z
pop
18: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
invokevirtual jdk.jfr.internal.Repository.clear:()V
19: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/jfr/internal/PlatformRecorder;
7 12 1 p Ljdk/jfr/internal/PlatformRecording;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
8 9 10 Class java.lang.Exception
synchronized long start(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)J
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=12, args_size=2
start local 0 start local 1 0: invokestatic java.time.ZonedDateTime.now:()Ljava/time/ZonedDateTime;
astore 2
start local 2 1: aload 2
invokevirtual java.time.ZonedDateTime.toInstant:()Ljava/time/Instant;
astore 3
start local 3 2: aload 1
aload 3
invokevirtual jdk.jfr.internal.PlatformRecording.setStartTime:(Ljava/time/Instant;)V
3: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.updateTimer:()V
4: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getDuration:()Ljava/time/Duration;
astore 4
start local 4 5: aload 4
ifnull 7
6: aload 1
aload 3
aload 4
invokevirtual java.time.Instant.plus:(Ljava/time/temporal/TemporalAmount;)Ljava/time/Instant;
invokevirtual jdk.jfr.internal.PlatformRecording.setStopTime:(Ljava/time/Instant;)V
7: StackMap locals: java.time.ZonedDateTime java.time.Instant java.time.Duration
StackMap stack:
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
istore 5
start local 5 8: iconst_1
istore 6
start local 6 9: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getStreamIntervalMillis:()J
lstore 7
start local 7 10: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 17
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.ZonedDateTime java.time.Instant java.time.Duration int int long top java.util.Iterator
StackMap stack:
11: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 9
start local 9 12: aload 9
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 17
13: iconst_0
istore 6
14: aload 9
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
ifeq 16
15: iconst_1
istore 5
16: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.ZonedDateTime java.time.Instant java.time.Duration int int long jdk.jfr.internal.PlatformRecording java.util.Iterator
StackMap stack:
lload 7
aload 9
invokevirtual jdk.jfr.internal.PlatformRecording.getStreamIntervalMillis:()J
invokestatic java.lang.Math.min:(JJ)J
lstore 7
end local 9 17: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.ZonedDateTime java.time.Instant java.time.Duration int int long top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
18: ldc -1
lstore 9
start local 9 19: iload 6
ifeq 33
20: aconst_null
astore 11
start local 11 21: iload 5
ifeq 25
22: aload 0
getfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
aload 2
invokevirtual jdk.jfr.internal.Repository.newChunk:(Ljava/time/ZonedDateTime;)Ljdk/jfr/internal/RepositoryChunk;
astore 11
23: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aload 11
invokevirtual jdk.jfr.internal.RepositoryChunk.getFile:()Ljdk/jfr/internal/SecuritySupport$SafePath;
invokevirtual jdk.jfr.internal.SecuritySupport$SafePath.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
24: goto 26
25: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.ZonedDateTime java.time.Instant java.time.Duration int int long long jdk.jfr.internal.RepositoryChunk
StackMap stack:
invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aconst_null
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
26: StackMap locals:
StackMap stack:
aload 0
aload 11
putfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
27: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.beginRecording:()V
28: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.getChunkStartNanos:()J
lstore 9
29: aload 1
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
invokevirtual jdk.jfr.internal.PlatformRecording.setState:(Ljdk/jfr/RecordingState;)V
30: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.updateSettings:()V
31: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.writeMetaEvents:()V
end local 11 32: goto 45
33: StackMap locals:
StackMap stack:
aconst_null
astore 11
start local 11 34: iload 5
ifeq 39
35: aload 0
getfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
aload 2
invokevirtual jdk.jfr.internal.Repository.newChunk:(Ljava/time/ZonedDateTime;)Ljdk/jfr/internal/RepositoryChunk;
astore 11
36: invokestatic jdk.jfr.internal.RequestEngine.doChunkEnd:()V
37: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aload 11
invokevirtual jdk.jfr.internal.RepositoryChunk.getFile:()Ljdk/jfr/internal/SecuritySupport$SafePath;
invokevirtual jdk.jfr.internal.SecuritySupport$SafePath.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
38: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.getChunkStartNanos:()J
lstore 9
39: StackMap locals: jdk.jfr.internal.RepositoryChunk
StackMap stack:
aload 1
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
invokevirtual jdk.jfr.internal.PlatformRecording.setState:(Ljdk/jfr/RecordingState;)V
40: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.updateSettings:()V
41: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.writeMetaEvents:()V
42: aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
ifnull 44
43: aload 0
aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
aload 3
aload 1
invokevirtual jdk.jfr.internal.PlatformRecorder.finishChunk:(Ljdk/jfr/internal/RepositoryChunk;Ljava/time/Instant;Ljdk/jfr/internal/PlatformRecording;)V
44: StackMap locals:
StackMap stack:
aload 0
aload 11
putfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
end local 11 45: StackMap locals:
StackMap stack:
iload 5
ifeq 47
46: lload 7
invokestatic jdk.jfr.internal.RequestEngine.setFlushInterval:(J)V
47: StackMap locals:
StackMap stack:
invokestatic jdk.jfr.internal.RequestEngine.doChunkBegin:()V
48: lload 9
lreturn
end local 9 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 49 0 this Ljdk/jfr/internal/PlatformRecorder;
0 49 1 recording Ljdk/jfr/internal/PlatformRecording;
1 49 2 zdtNow Ljava/time/ZonedDateTime;
2 49 3 now Ljava/time/Instant;
5 49 4 duration Ljava/time/Duration;
8 49 5 toDisk Z
9 49 6 beginPhysical Z
10 49 7 streamInterval J
12 17 9 s Ljdk/jfr/internal/PlatformRecording;
19 49 9 startNanos J
21 32 11 newChunk Ljdk/jfr/internal/RepositoryChunk;
34 45 11 newChunk Ljdk/jfr/internal/RepositoryChunk;
MethodParameters:
Name Flags
recording
synchronized void stop(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=12, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
astore 2
start local 2 1: aload 2
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
invokestatic jdk.jfr.internal.Utils.isAfter:(Ljdk/jfr/RecordingState;Ljdk/jfr/RecordingState;)Z
ifeq 3
2: new java.lang.IllegalStateException
dup
ldc "Can't stop an already stopped recording."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: jdk.jfr.RecordingState
StackMap stack:
aload 2
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
invokestatic jdk.jfr.internal.Utils.isBefore:(Ljdk/jfr/RecordingState;Ljdk/jfr/RecordingState;)Z
ifeq 5
4: new java.lang.IllegalStateException
dup
ldc "Recording must be started before it can be stopped."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
invokestatic java.time.ZonedDateTime.now:()Ljava/time/ZonedDateTime;
astore 3
start local 3 6: aload 3
invokevirtual java.time.ZonedDateTime.toInstant:()Ljava/time/Instant;
astore 4
start local 4 7: iconst_0
istore 5
start local 5 8: iconst_1
istore 6
start local 6 9: ldc 9223372036854775807
lstore 7
start local 7 10: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 10
goto 18
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording jdk.jfr.RecordingState java.time.ZonedDateTime java.time.Instant int int long top java.util.Iterator
StackMap stack:
11: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 9
start local 9 12: aload 9
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
astore 11
start local 11 13: aload 9
aload 1
if_acmpeq 18
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
aload 11
if_acmpne 18
14: iconst_0
istore 6
15: aload 9
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
ifeq 17
16: iconst_1
istore 5
17: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording jdk.jfr.RecordingState java.time.ZonedDateTime java.time.Instant int int long jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.RecordingState
StackMap stack:
lload 7
aload 9
invokevirtual jdk.jfr.internal.PlatformRecording.getStreamIntervalMillis:()J
invokestatic java.lang.Math.min:(JJ)J
lstore 7
end local 11 end local 9 18: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording jdk.jfr.RecordingState java.time.ZonedDateTime java.time.Instant int int long top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 11
19: aload 1
invokestatic jdk.jfr.internal.OldObjectSample.emit:(Ljdk/jfr/internal/PlatformRecording;)V
20: aload 1
getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.getChunkStartNanos:()J
invokevirtual jdk.jfr.internal.PlatformRecording.setFinalStartnanos:(J)V
21: iload 6
ifeq 35
22: invokestatic jdk.jfr.internal.RequestEngine.doChunkEnd:()V
23: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
ifeq 31
24: aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
ifnull 32
25: aload 0
getfield jdk.jfr.internal.PlatformRecorder.inShutdown:Z
ifeq 27
26: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.markChunkFinal:()V
27: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording jdk.jfr.RecordingState java.time.ZonedDateTime java.time.Instant int int long
StackMap stack:
invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aconst_null
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
28: aload 0
aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
aload 4
aconst_null
invokevirtual jdk.jfr.internal.PlatformRecorder.finishChunk:(Ljdk/jfr/internal/RepositoryChunk;Ljava/time/Instant;Ljdk/jfr/internal/PlatformRecording;)V
29: aload 0
aconst_null
putfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
30: goto 32
31: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jfr.internal.PlatformRecorder.dumpMemoryToDestination:(Ljdk/jfr/internal/PlatformRecording;)V
32: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.endRecording:()V
33: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.disableEvents:()V
34: goto 48
35: StackMap locals:
StackMap stack:
aconst_null
astore 9
start local 9 36: invokestatic jdk.jfr.internal.RequestEngine.doChunkEnd:()V
37: aload 0
aload 1
invokevirtual jdk.jfr.internal.PlatformRecorder.updateSettingsButIgnoreRecording:(Ljdk/jfr/internal/PlatformRecording;)V
38: iload 5
ifeq 42
39: aload 0
getfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
aload 3
invokevirtual jdk.jfr.internal.Repository.newChunk:(Ljava/time/ZonedDateTime;)Ljdk/jfr/internal/RepositoryChunk;
astore 9
40: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aload 9
invokevirtual jdk.jfr.internal.RepositoryChunk.getFile:()Ljdk/jfr/internal/SecuritySupport$SafePath;
invokevirtual jdk.jfr.internal.SecuritySupport$SafePath.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
41: goto 43
42: StackMap locals: jdk.jfr.internal.RepositoryChunk
StackMap stack:
invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aconst_null
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
43: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.writeMetaEvents:()V
44: aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
ifnull 46
45: aload 0
aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
aload 4
aconst_null
invokevirtual jdk.jfr.internal.PlatformRecorder.finishChunk:(Ljdk/jfr/internal/RepositoryChunk;Ljava/time/Instant;Ljdk/jfr/internal/PlatformRecording;)V
46: StackMap locals:
StackMap stack:
aload 0
aload 9
putfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
47: invokestatic jdk.jfr.internal.RequestEngine.doChunkBegin:()V
end local 9 48: StackMap locals:
StackMap stack:
iload 5
ifeq 51
49: lload 7
invokestatic jdk.jfr.internal.RequestEngine.setFlushInterval:(J)V
50: goto 52
51: StackMap locals:
StackMap stack:
ldc 9223372036854775807
invokestatic jdk.jfr.internal.RequestEngine.setFlushInterval:(J)V
52: StackMap locals:
StackMap stack:
aload 1
getstatic jdk.jfr.RecordingState.STOPPED:Ljdk/jfr/RecordingState;
invokevirtual jdk.jfr.internal.PlatformRecording.setState:(Ljdk/jfr/RecordingState;)V
53: return
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 54 0 this Ljdk/jfr/internal/PlatformRecorder;
0 54 1 recording Ljdk/jfr/internal/PlatformRecording;
1 54 2 state Ljdk/jfr/RecordingState;
6 54 3 zdtNow Ljava/time/ZonedDateTime;
7 54 4 now Ljava/time/Instant;
8 54 5 toDisk Z
9 54 6 endPhysical Z
10 54 7 streamInterval J
12 18 9 s Ljdk/jfr/internal/PlatformRecording;
13 18 11 rs Ljdk/jfr/RecordingState;
36 48 9 newChunk Ljdk/jfr/internal/RepositoryChunk;
MethodParameters:
Name Flags
recording
private void dumpMemoryToDestination(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getDestination:()Ljdk/jfr/internal/WriteableUserPath;
astore 2
start local 2 1: aload 2
ifnull 4
2: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aload 2
invokevirtual jdk.jfr.internal.WriteableUserPath.getRealPathText:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
3: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.clearDestination:()V
4: StackMap locals: jdk.jfr.internal.WriteableUserPath
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/jfr/internal/PlatformRecorder;
0 5 1 recording Ljdk/jfr/internal/PlatformRecording;
1 5 2 dest Ljdk/jfr/internal/WriteableUserPath;
MethodParameters:
Name Flags
recording
private void disableEvents();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
invokevirtual jdk.jfr.internal.MetadataRepository.disableEvents:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/PlatformRecorder;
void updateSettings();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokevirtual jdk.jfr.internal.PlatformRecorder.updateSettingsButIgnoreRecording:(Ljdk/jfr/internal/PlatformRecording;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/PlatformRecorder;
void updateSettingsButIgnoreRecording(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRunningRecordings:()Ljava/util/List;
astore 2
start local 2 1: new java.util.ArrayList
dup
aload 2
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 3
start local 3 2: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.util.List java.util.List top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 4
start local 4 4: aload 4
aload 1
if_acmpeq 6
5: aload 3
aload 4
invokevirtual jdk.jfr.internal.PlatformRecording.getSettings:()Ljava/util/Map;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aload 3
invokevirtual jdk.jfr.internal.MetadataRepository.setSettings:(Ljava/util/List;)V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jfr/internal/PlatformRecorder;
0 9 1 ignoreMe Ljdk/jfr/internal/PlatformRecording;
1 9 2 recordings Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;
2 9 3 list Ljava/util/List<Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;>;
4 6 4 r Ljdk/jfr/internal/PlatformRecording;
MethodParameters:
Name Flags
ignoreMe
synchronized void rotateDisk();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic java.time.ZonedDateTime.now:()Ljava/time/ZonedDateTime;
astore 1
start local 1 1: aload 0
getfield jdk.jfr.internal.PlatformRecorder.repository:Ljdk/jfr/internal/Repository;
aload 1
invokevirtual jdk.jfr.internal.Repository.newChunk:(Ljava/time/ZonedDateTime;)Ljdk/jfr/internal/RepositoryChunk;
astore 2
start local 2 2: invokestatic jdk.jfr.internal.RequestEngine.doChunkEnd:()V
3: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
aload 2
invokevirtual jdk.jfr.internal.RepositoryChunk.getFile:()Ljdk/jfr/internal/SecuritySupport$SafePath;
invokevirtual jdk.jfr.internal.SecuritySupport$SafePath.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.MetadataRepository.setOutput:(Ljava/lang/String;)V
4: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.writeMetaEvents:()V
5: aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
ifnull 7
6: aload 0
aload 0
getfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
aload 1
invokevirtual java.time.ZonedDateTime.toInstant:()Ljava/time/Instant;
aconst_null
invokevirtual jdk.jfr.internal.PlatformRecorder.finishChunk:(Ljdk/jfr/internal/RepositoryChunk;Ljava/time/Instant;Ljdk/jfr/internal/PlatformRecording;)V
7: StackMap locals: java.time.ZonedDateTime jdk.jfr.internal.RepositoryChunk
StackMap stack:
aload 0
aload 2
putfield jdk.jfr.internal.PlatformRecorder.currentChunk:Ljdk/jfr/internal/RepositoryChunk;
8: invokestatic jdk.jfr.internal.RequestEngine.doChunkBegin:()V
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/PlatformRecorder;
1 10 1 now Ljava/time/ZonedDateTime;
2 10 2 newChunk Ljdk/jfr/internal/RepositoryChunk;
private java.util.List<jdk.jfr.internal.PlatformRecording> getRunningRecordings();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, 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 jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: jdk.jfr.internal.PlatformRecorder java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 2
start local 2 3: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 5
4: aload 1
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/PlatformRecorder;
1 7 1 runningRecordings Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;
3 5 2 recording Ljdk/jfr/internal/PlatformRecording;
Signature: ()Ljava/util/List<Ljdk/jfr/internal/PlatformRecording;>;
private java.util.List<jdk.jfr.internal.RepositoryChunk> makeChunkList(java.time.Instant, java.time.Instant);
descriptor: (Ljava/time/Instant;Ljava/time/Instant;)Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 3
start local 3 1: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 4
StackMap locals: jdk.jfr.internal.PlatformRecorder java.time.Instant java.time.Instant java.util.Set top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 4
start local 4 3: aload 3
aload 4
invokevirtual jdk.jfr.internal.PlatformRecording.getChunks:()Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 4 4: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 3
invokeinterface java.util.Set.size:()I
ifle 14
6: new java.util.ArrayList
dup
aload 3
invokeinterface java.util.Set.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 7: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: jdk.jfr.internal.PlatformRecorder java.time.Instant java.time.Instant java.util.Set java.util.List top java.util.Iterator
StackMap stack:
8: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.RepositoryChunk
astore 5
start local 5 9: aload 5
aload 1
aload 2
invokevirtual jdk.jfr.internal.RepositoryChunk.inInterval:(Ljava/time/Instant;Ljava/time/Instant;)Z
ifeq 11
10: aload 4
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 11: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
12: aload 4
getstatic jdk.jfr.internal.RepositoryChunk.END_TIME_COMPARATOR:Ljava/util/Comparator;
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
13: aload 4
areturn
end local 4 14: StackMap locals: jdk.jfr.internal.PlatformRecorder java.time.Instant java.time.Instant java.util.Set
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/jfr/internal/PlatformRecorder;
0 15 1 startTime Ljava/time/Instant;
0 15 2 endTime Ljava/time/Instant;
1 15 3 chunkSet Ljava/util/Set<Ljdk/jfr/internal/RepositoryChunk;>;
3 4 4 r Ljdk/jfr/internal/PlatformRecording;
7 14 4 chunks Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;
9 11 5 rc Ljdk/jfr/internal/RepositoryChunk;
Signature: (Ljava/time/Instant;Ljava/time/Instant;)Ljava/util/List<Ljdk/jfr/internal/RepositoryChunk;>;
MethodParameters:
Name Flags
startTime
endTime
private void startDiskMonitor();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "JFR Periodic Tasks"
aload 0
invokedynamic run(Ljdk/jfr/internal/PlatformRecorder;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
jdk/jfr/internal/PlatformRecorder.lambda$1()V (7)
()V
invokestatic jdk.jfr.internal.SecuritySupport.createThreadWitNoPermissions:(Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Thread;
astore 1
start local 1 1: aload 1
iconst_1
invokestatic jdk.jfr.internal.SecuritySupport.setDaemonThread:(Ljava/lang/Thread;Z)V
2: aload 1
invokevirtual java.lang.Thread.start:()V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jfr/internal/PlatformRecorder;
1 4 1 t Ljava/lang/Thread;
private void finishChunk(jdk.jfr.internal.RepositoryChunk, java.time.Instant, jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/RepositoryChunk;Ljava/time/Instant;Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokevirtual jdk.jfr.internal.RepositoryChunk.finish:(Ljava/time/Instant;)V
1: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 5
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.RepositoryChunk java.time.Instant jdk.jfr.internal.PlatformRecording top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 4
start local 4 3: aload 4
aload 3
if_acmpeq 5
aload 4
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 5
4: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.appendChunk:(Ljdk/jfr/internal/RepositoryChunk;)V
end local 4 5: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: invokestatic jdk.jfr.internal.FilePurger.purge:()V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/jfr/internal/PlatformRecorder;
0 8 1 chunk Ljdk/jfr/internal/RepositoryChunk;
0 8 2 time Ljava/time/Instant;
0 8 3 ignoreMe Ljdk/jfr/internal/PlatformRecording;
3 5 4 r Ljdk/jfr/internal/PlatformRecording;
MethodParameters:
Name Flags
chunk
time
ignoreMe
private void writeMetaEvents();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=10, args_size=1
start local 0 0: aload 0
getfield jdk.jfr.internal.PlatformRecorder.activeRecordingEvent:Ljdk/jfr/EventType;
invokevirtual jdk.jfr.EventType.isEnabled:()Z
ifeq 33
1: getstatic jdk.jfr.events.ActiveRecordingEvent.EVENT:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast jdk.jfr.events.ActiveRecordingEvent
astore 1
start local 1 2: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 32
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 2
start local 2 4: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 32
aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.shouldWriteMetadataEvent:()Z
ifeq 32
5: aload 1
aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getId:()J
putfield jdk.jfr.events.ActiveRecordingEvent.id:J
6: aload 1
aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getName:()Ljava/lang/String;
putfield jdk.jfr.events.ActiveRecordingEvent.name:Ljava/lang/String;
7: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getDestination:()Ljdk/jfr/internal/WriteableUserPath;
astore 4
start local 4 8: aload 1
aload 4
ifnonnull 9
aconst_null
goto 10
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath
StackMap stack: jdk.jfr.events.ActiveRecordingEvent
9: aload 4
invokevirtual jdk.jfr.internal.WriteableUserPath.getRealPathText:()Ljava/lang/String;
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath
StackMap stack: jdk.jfr.events.ActiveRecordingEvent java.lang.String
10: putfield jdk.jfr.events.ActiveRecordingEvent.destination:Ljava/lang/String;
11: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getDuration:()Ljava/time/Duration;
astore 5
start local 5 12: aload 1
aload 5
ifnonnull 13
ldc 9223372036854775807
goto 14
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration
StackMap stack: jdk.jfr.events.ActiveRecordingEvent
13: aload 5
invokevirtual java.time.Duration.toMillis:()J
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration
StackMap stack: jdk.jfr.events.ActiveRecordingEvent long
14: putfield jdk.jfr.events.ActiveRecordingEvent.recordingDuration:J
15: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getMaxAge:()Ljava/time/Duration;
astore 6
start local 6 16: aload 1
aload 6
ifnonnull 17
ldc 9223372036854775807
goto 18
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration
StackMap stack: jdk.jfr.events.ActiveRecordingEvent
17: aload 6
invokevirtual java.time.Duration.toMillis:()J
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration
StackMap stack: jdk.jfr.events.ActiveRecordingEvent long
18: putfield jdk.jfr.events.ActiveRecordingEvent.maxAge:J
19: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getMaxSize:()Ljava/lang/Long;
astore 7
start local 7 20: aload 1
aload 7
ifnonnull 21
ldc 9223372036854775807
goto 22
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration java.lang.Long
StackMap stack: jdk.jfr.events.ActiveRecordingEvent
21: aload 7
invokevirtual java.lang.Long.longValue:()J
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration java.lang.Long
StackMap stack: jdk.jfr.events.ActiveRecordingEvent long
22: putfield jdk.jfr.events.ActiveRecordingEvent.maxSize:J
23: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getStartTime:()Ljava/time/Instant;
astore 8
start local 8 24: aload 1
aload 8
ifnonnull 25
ldc 9223372036854775807
goto 26
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration java.lang.Long java.time.Instant
StackMap stack: jdk.jfr.events.ActiveRecordingEvent
25: aload 8
invokevirtual java.time.Instant.toEpochMilli:()J
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration java.lang.Long java.time.Instant
StackMap stack: jdk.jfr.events.ActiveRecordingEvent long
26: putfield jdk.jfr.events.ActiveRecordingEvent.recordingStart:J
27: aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.getFlushInterval:()Ljava/time/Duration;
astore 9
start local 9 28: aload 1
aload 9
ifnonnull 29
ldc 9223372036854775807
goto 30
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration java.lang.Long java.time.Instant java.time.Duration
StackMap stack: jdk.jfr.events.ActiveRecordingEvent
29: aload 9
invokevirtual java.time.Duration.toMillis:()J
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent jdk.jfr.internal.PlatformRecording java.util.Iterator jdk.jfr.internal.WriteableUserPath java.time.Duration java.time.Duration java.lang.Long java.time.Instant java.time.Duration
StackMap stack: jdk.jfr.events.ActiveRecordingEvent long
30: putfield jdk.jfr.events.ActiveRecordingEvent.flushInterval:J
31: aload 1
invokevirtual jdk.jfr.events.ActiveRecordingEvent.commit:()V
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 2 32: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.events.ActiveRecordingEvent top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 1 33: StackMap locals: jdk.jfr.internal.PlatformRecorder
StackMap stack:
aload 0
getfield jdk.jfr.internal.PlatformRecorder.activeSettingEvent:Ljdk/jfr/EventType;
invokevirtual jdk.jfr.EventType.isEnabled:()Z
ifeq 38
34: invokestatic jdk.jfr.internal.MetadataRepository.getInstance:()Ljdk/jfr/internal/MetadataRepository;
invokevirtual jdk.jfr.internal.MetadataRepository.getEventControls:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 37
StackMap locals: jdk.jfr.internal.PlatformRecorder top java.util.Iterator
StackMap stack:
35: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.EventControl
astore 1
start local 1 36: aload 1
invokevirtual jdk.jfr.internal.EventControl.writeActiveSettingEvent:()V
end local 1 37: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 35
38: StackMap locals: jdk.jfr.internal.PlatformRecorder
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 this Ljdk/jfr/internal/PlatformRecorder;
2 33 1 event Ljdk/jfr/events/ActiveRecordingEvent;
4 32 2 r Ljdk/jfr/internal/PlatformRecording;
8 32 4 p Ljdk/jfr/internal/WriteableUserPath;
12 32 5 d Ljava/time/Duration;
16 32 6 age Ljava/time/Duration;
20 32 7 size Ljava/lang/Long;
24 32 8 start Ljava/time/Instant;
28 32 9 fi Ljava/time/Duration;
36 37 1 ec Ljdk/jfr/internal/EventControl;
private void periodicTask();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.hasNativeJFR:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 1
monitorenter
3: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.shouldRotateDisk:()Z
ifeq 5
4: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.rotateDisk:()V
5: StackMap locals: jdk.jfr.internal.PlatformRecorder
StackMap stack:
aload 1
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 1
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
invokestatic jdk.jfr.internal.RequestEngine.doPeriodic:()J
lstore 1
start local 1 10: lload 1
invokestatic jdk.jfr.internal.Options.getWaitInterval:()J
invokestatic java.lang.Math.min:(JJ)J
lstore 3
start local 3 11: aload 0
lload 3
invokevirtual jdk.jfr.internal.PlatformRecorder.takeNap:(J)V
end local 3 end local 1 12: goto 2
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/jfr/internal/PlatformRecorder;
10 12 1 minDelta J
11 12 3 wait J
Exception table:
from to target type
3 6 7 any
7 8 7 any
private void takeNap(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: getstatic jdk.jfr.internal.JVM.FILE_DELTA_CHANGE:Ljava/lang/Object;
dup
astore 3
monitorenter
1: getstatic jdk.jfr.internal.JVM.FILE_DELTA_CHANGE:Ljava/lang/Object;
lload 1
ldc 10
lcmp
ifge 2
ldc 10
goto 3
StackMap locals: jdk.jfr.internal.PlatformRecorder long java.lang.Object
StackMap stack: java.lang.Object
2: lload 1
StackMap locals: jdk.jfr.internal.PlatformRecorder long java.lang.Object
StackMap stack: java.lang.Object long
3: invokevirtual java.lang.Object.wait:(J)V
4: aload 3
monitorexit
5: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
8: StackMap locals: jdk.jfr.internal.PlatformRecorder long
StackMap stack: java.lang.InterruptedException
pop
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jfr/internal/PlatformRecorder;
0 10 1 duration J
Exception table:
from to target type
1 5 6 any
6 7 6 any
0 8 8 Class java.lang.InterruptedException
MethodParameters:
Name Flags
duration
synchronized jdk.jfr.Recording newCopy(jdk.jfr.internal.PlatformRecording, boolean);
descriptor: (Ljdk/jfr/internal/PlatformRecording;Z)Ljdk/jfr/Recording;
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new jdk.jfr.Recording
dup
invokespecial jdk.jfr.Recording.<init>:()V
astore 3
start local 3 1: invokestatic jdk.jfr.internal.PrivateAccess.getInstance:()Ljdk/jfr/internal/PrivateAccess;
aload 3
invokevirtual jdk.jfr.internal.PrivateAccess.getPlatformRecording:(Ljdk/jfr/Recording;)Ljdk/jfr/internal/PlatformRecording;
astore 4
start local 4 2: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getSettings:()Ljava/util/Map;
invokevirtual jdk.jfr.internal.PlatformRecording.setSettings:(Ljava/util/Map;)V
3: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getMaxAge:()Ljava/time/Duration;
invokevirtual jdk.jfr.internal.PlatformRecording.setMaxAge:(Ljava/time/Duration;)V
4: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getMaxSize:()Ljava/lang/Long;
invokevirtual java.lang.Long.longValue:()J
invokevirtual jdk.jfr.internal.PlatformRecording.setMaxSize:(J)V
5: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getDumpOnExit:()Z
invokevirtual jdk.jfr.internal.PlatformRecording.setDumpOnExit:(Z)V
6: aload 4
new java.lang.StringBuilder
dup
ldc "Clone of "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.PlatformRecording.setName:(Ljava/lang/String;)V
7: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
invokevirtual jdk.jfr.internal.PlatformRecording.setToDisk:(Z)V
8: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getDuration:()Ljava/time/Duration;
invokevirtual jdk.jfr.internal.PlatformRecording.setInternalDuration:(Ljava/time/Duration;)V
9: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getStartTime:()Ljava/time/Instant;
invokevirtual jdk.jfr.internal.PlatformRecording.setStartTime:(Ljava/time/Instant;)V
10: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getStopTime:()Ljava/time/Instant;
invokevirtual jdk.jfr.internal.PlatformRecording.setStopTime:(Ljava/time/Instant;)V
11: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.NEW:Ljdk/jfr/RecordingState;
if_acmpne 13
12: aload 3
areturn
13: StackMap locals: jdk.jfr.Recording jdk.jfr.internal.PlatformRecording
StackMap stack:
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.DELAYED:Ljdk/jfr/RecordingState;
if_acmpne 16
14: aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getStartTime:()Ljava/time/Instant;
invokevirtual jdk.jfr.internal.PlatformRecording.scheduleStart:(Ljava/time/Instant;)V
15: aload 3
areturn
16: StackMap locals:
StackMap stack:
aload 4
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
invokevirtual jdk.jfr.internal.PlatformRecording.setState:(Ljdk/jfr/RecordingState;)V
17: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getChunks:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 20
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording int jdk.jfr.Recording jdk.jfr.internal.PlatformRecording top java.util.Iterator
StackMap stack:
18: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.RepositoryChunk
astore 5
start local 5 19: aload 4
aload 5
invokevirtual jdk.jfr.internal.PlatformRecording.add:(Ljdk/jfr/internal/RepositoryChunk;)V
end local 5 20: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
21: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 29
22: iload 2
ifeq 25
23: aload 4
new java.lang.StringBuilder
dup
ldc "Stopped when cloning recording '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.PlatformRecording.stop:(Ljava/lang/String;)Z
pop
24: goto 29
25: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording int jdk.jfr.Recording jdk.jfr.internal.PlatformRecording
StackMap stack:
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getStopTime:()Ljava/time/Instant;
ifnull 29
26: aload 4
invokevirtual jdk.jfr.internal.PlatformRecording.createStopTask:()Ljava/util/TimerTask;
astore 5
start local 5 27: aload 4
aload 4
invokevirtual jdk.jfr.internal.PlatformRecording.createStopTask:()Ljava/util/TimerTask;
invokevirtual jdk.jfr.internal.PlatformRecording.setStopTask:(Ljava/util/TimerTask;)V
28: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getTimer:()Ljava/util/Timer;
aload 5
aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getStopTime:()Ljava/time/Instant;
invokevirtual java.time.Instant.toEpochMilli:()J
invokevirtual java.util.Timer.schedule:(Ljava/util/TimerTask;J)V
end local 5 29: StackMap locals:
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljdk/jfr/internal/PlatformRecorder;
0 30 1 r Ljdk/jfr/internal/PlatformRecording;
0 30 2 stop Z
1 30 3 newRec Ljdk/jfr/Recording;
2 30 4 copy Ljdk/jfr/internal/PlatformRecording;
19 20 5 c Ljdk/jfr/internal/RepositoryChunk;
27 29 5 stopTask Ljava/util/TimerTask;
MethodParameters:
Name Flags
r
stop
public synchronized void fillWithRecordedData(jdk.jfr.internal.PlatformRecording, java.lang.Boolean);
descriptor: (Ljdk/jfr/internal/PlatformRecording;Ljava/lang/Boolean;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iconst_0
istore 4
start local 4 2: aload 0
getfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 8
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.lang.Boolean int int top java.util.Iterator
StackMap stack:
3: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 5
start local 5 4: aload 5
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
if_acmpne 8
5: iconst_1
istore 3
6: aload 5
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
ifeq 8
7: iconst_1
istore 4
end local 5 8: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: iload 3
ifeq 29
10: iload 4
ifeq 14
11: aload 0
getfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
aload 2
invokestatic jdk.jfr.internal.OldObjectSample.emit:(Ljava/util/List;Ljava/lang/Boolean;)V
12: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.rotateDisk:()V
13: goto 29
14: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.lang.Boolean int int
StackMap stack:
aconst_null
astore 5
aconst_null
astore 6
15: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.newTemporaryRecording:()Ljdk/jfr/internal/PlatformRecording;
astore 7
start local 7 16: aload 7
iconst_1
invokevirtual jdk.jfr.internal.PlatformRecording.setToDisk:(Z)V
17: aload 7
iconst_0
invokevirtual jdk.jfr.internal.PlatformRecording.setShouldWriteActiveRecordingEvent:(Z)V
18: aload 7
invokevirtual jdk.jfr.internal.PlatformRecording.start:()J
pop2
19: aload 0
getfield jdk.jfr.internal.PlatformRecorder.recordings:Ljava/util/List;
aload 2
invokestatic jdk.jfr.internal.OldObjectSample.emit:(Ljava/util/List;Ljava/lang/Boolean;)V
20: aload 7
ldc "Snapshot dump"
invokevirtual jdk.jfr.internal.PlatformRecording.stop:(Ljava/lang/String;)Z
pop
21: aload 0
aload 1
invokevirtual jdk.jfr.internal.PlatformRecorder.fillWithDiskChunks:(Ljdk/jfr/internal/PlatformRecording;)V
22: aload 7
ifnull 28
aload 7
invokevirtual jdk.jfr.internal.PlatformRecording.close:()V
goto 28
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.lang.Boolean int int java.lang.Throwable java.lang.Throwable jdk.jfr.internal.PlatformRecording
StackMap stack: java.lang.Throwable
23: astore 5
aload 7
ifnull 24
aload 7
invokevirtual jdk.jfr.internal.PlatformRecording.close:()V
end local 7 StackMap locals:
StackMap stack:
24: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
25: astore 6
aload 5
ifnonnull 26
aload 6
astore 5
goto 27
StackMap locals:
StackMap stack:
26: aload 5
aload 6
if_acmpeq 27
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
27: aload 5
athrow
28: StackMap locals:
StackMap stack:
return
29: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.jfr.internal.PlatformRecorder.fillWithDiskChunks:(Ljdk/jfr/internal/PlatformRecording;)V
30: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Ljdk/jfr/internal/PlatformRecorder;
0 31 1 target Ljdk/jfr/internal/PlatformRecording;
0 31 2 pathToGcRoots Ljava/lang/Boolean;
1 31 3 running Z
2 31 4 toDisk Z
4 8 5 r Ljdk/jfr/internal/PlatformRecording;
16 24 7 snapshot Ljdk/jfr/internal/PlatformRecording;
Exception table:
from to target type
16 22 23 any
15 25 25 any
MethodParameters:
Name Flags
target
pathToGcRoots
private void fillWithDiskChunks(jdk.jfr.internal.PlatformRecording);
descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aconst_null
invokevirtual jdk.jfr.internal.PlatformRecorder.makeChunkList:(Ljava/time/Instant;Ljava/time/Instant;)Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.RepositoryChunk
astore 2
start local 2 2: aload 1
aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.add:(Ljdk/jfr/internal/RepositoryChunk;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 1
getstatic jdk.jfr.RecordingState.STOPPED:Ljdk/jfr/RecordingState;
invokevirtual jdk.jfr.internal.PlatformRecording.setState:(Ljdk/jfr/RecordingState;)V
5: aconst_null
astore 2
start local 2 6: aconst_null
astore 3
start local 3 7: aload 1
invokevirtual jdk.jfr.internal.PlatformRecording.getChunks:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 13
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.Instant java.time.Instant top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.RepositoryChunk
astore 4
start local 4 9: aload 2
ifnull 10
aload 4
invokevirtual jdk.jfr.internal.RepositoryChunk.getStartTime:()Ljava/time/Instant;
aload 2
invokevirtual java.time.Instant.isBefore:(Ljava/time/Instant;)Z
ifeq 11
10: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.Instant java.time.Instant jdk.jfr.internal.RepositoryChunk java.util.Iterator
StackMap stack:
aload 4
invokevirtual jdk.jfr.internal.RepositoryChunk.getStartTime:()Ljava/time/Instant;
astore 2
11: StackMap locals:
StackMap stack:
aload 3
ifnull 12
aload 4
invokevirtual jdk.jfr.internal.RepositoryChunk.getEndTime:()Ljava/time/Instant;
aload 3
invokevirtual java.time.Instant.isAfter:(Ljava/time/Instant;)Z
ifeq 13
12: StackMap locals:
StackMap stack:
aload 4
invokevirtual jdk.jfr.internal.RepositoryChunk.getEndTime:()Ljava/time/Instant;
astore 3
end local 4 13: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.Instant java.time.Instant top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
14: invokestatic java.time.Instant.now:()Ljava/time/Instant;
astore 4
start local 4 15: aload 2
ifnonnull 17
16: aload 4
astore 2
17: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.PlatformRecording java.time.Instant java.time.Instant java.time.Instant
StackMap stack:
aload 3
ifnonnull 19
18: aload 4
astore 3
19: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual jdk.jfr.internal.PlatformRecording.setStartTime:(Ljava/time/Instant;)V
20: aload 1
aload 3
invokevirtual jdk.jfr.internal.PlatformRecording.setStopTime:(Ljava/time/Instant;)V
21: aload 1
aload 2
aload 3
invokestatic java.time.Duration.between:(Ljava/time/temporal/Temporal;Ljava/time/temporal/Temporal;)Ljava/time/Duration;
invokevirtual jdk.jfr.internal.PlatformRecording.setInternalDuration:(Ljava/time/Duration;)V
22: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Ljdk/jfr/internal/PlatformRecorder;
0 23 1 target Ljdk/jfr/internal/PlatformRecording;
2 3 2 c Ljdk/jfr/internal/RepositoryChunk;
6 23 2 startTime Ljava/time/Instant;
7 23 3 endTime Ljava/time/Instant;
9 13 4 c Ljdk/jfr/internal/RepositoryChunk;
15 23 4 now Ljava/time/Instant;
MethodParameters:
Name Flags
target
public synchronized void migrate(jdk.jfr.internal.SecuritySupport$SafePath);
descriptor: (Ljdk/jfr/internal/SecuritySupport$SafePath;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: invokestatic jdk.jfr.internal.Repository.getRepository:()Ljdk/jfr/internal/Repository;
aload 1
invokevirtual jdk.jfr.internal.Repository.setBasePath:(Ljdk/jfr/internal/SecuritySupport$SafePath;)V
1: iconst_0
istore 2
start local 2 2: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.SecuritySupport$SafePath int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.jfr.internal.PlatformRecording
astore 3
start local 3 4: getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
aload 3
invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
if_acmpne 6
aload 3
invokevirtual jdk.jfr.internal.PlatformRecording.isToDisk:()Z
ifeq 6
5: iconst_1
istore 2
end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: iload 2
ifeq 10
8: getstatic jdk.jfr.internal.PlatformRecorder.jvm:Ljdk/jfr/internal/JVM;
invokevirtual jdk.jfr.internal.JVM.markChunkFinal:()V
9: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.rotateDisk:()V
10: StackMap locals: jdk.jfr.internal.PlatformRecorder jdk.jfr.internal.SecuritySupport$SafePath int
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/jfr/internal/PlatformRecorder;
0 11 1 repo Ljdk/jfr/internal/SecuritySupport$SafePath;
2 11 2 disk Z
4 6 3 s Ljdk/jfr/internal/PlatformRecording;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
repo
private static void lambda$0(java.util.List);
descriptor: (Ljava/util/List;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=1, args_size=1
0: aload 0
new java.util.Timer
dup
ldc "JFR Recording Scheduler"
iconst_1
invokespecial java.util.Timer.<init>:(Ljava/lang/String;Z)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
LocalVariableTable:
Start End Slot Name Signature
private void lambda$1();
descriptor: ()V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.jfr.internal.PlatformRecorder.periodicTask:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/PlatformRecorder;
}
SourceFile: "PlatformRecorder.java"
InnerClasses:
public abstract UncaughtExceptionHandler = java.lang.Thread$UncaughtExceptionHandler of java.lang.Thread
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final SafePath = jdk.jfr.internal.SecuritySupport$SafePath of jdk.jfr.internal.SecuritySupport
final SecureRecorderListener = jdk.jfr.internal.SecuritySupport$SecureRecorderListener of jdk.jfr.internal.SecuritySupport
final ExceptionHandler = jdk.jfr.internal.ShutdownHook$ExceptionHandler of jdk.jfr.internal.ShutdownHook