final class jdk.jfr.internal.ShutdownHook implements java.lang.Runnable
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.jfr.internal.ShutdownHook
  super_class: java.lang.Object
{
  private final jdk.jfr.internal.PlatformRecorder recorder;
    descriptor: Ljdk/jfr/internal/PlatformRecorder;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  java.lang.Object tlabDummyObject;
    descriptor: Ljava/lang/Object;
    flags: (0x0000) 

  void <init>(jdk.jfr.internal.PlatformRecorder);
    descriptor: (Ljdk/jfr/internal/PlatformRecorder;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.jfr.internal.ShutdownHook this
        start local 1 // jdk.jfr.internal.PlatformRecorder recorder
         0: .line 44
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 45
            aload 0 /* this */
            aload 1 /* recorder */
            putfield jdk.jfr.internal.ShutdownHook.recorder:Ljdk/jfr/internal/PlatformRecorder;
         2: .line 46
            return
        end local 1 // jdk.jfr.internal.PlatformRecorder recorder
        end local 0 // jdk.jfr.internal.ShutdownHook this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    3     0      this  Ljdk/jfr/internal/ShutdownHook;
            0    3     1  recorder  Ljdk/jfr/internal/PlatformRecorder;
    MethodParameters:
          Name  Flags
      recorder  

  public void run();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // jdk.jfr.internal.ShutdownHook this
         0: .line 53
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield jdk.jfr.internal.ShutdownHook.tlabDummyObject:Ljava/lang/Object;
         1: .line 55
            aload 0 /* this */
            getfield jdk.jfr.internal.ShutdownHook.recorder:Ljdk/jfr/internal/PlatformRecorder;
            invokevirtual jdk.jfr.internal.PlatformRecorder.getRecordings:()Ljava/util/List;
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 2
            goto 5
      StackMap locals: jdk.jfr.internal.ShutdownHook top java.util.Iterator
      StackMap stack:
         2: aload 2
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast jdk.jfr.internal.PlatformRecording
            astore 1 /* recording */
        start local 1 // jdk.jfr.internal.PlatformRecording recording
         3: .line 56
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getDumpOnExit:()Z
            ifeq 5
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getState:()Ljdk/jfr/RecordingState;
            getstatic jdk.jfr.RecordingState.RUNNING:Ljdk/jfr/RecordingState;
            if_acmpne 5
         4: .line 57
            aload 0 /* this */
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.ShutdownHook.dump:(Ljdk/jfr/internal/PlatformRecording;)V
        end local 1 // jdk.jfr.internal.PlatformRecording recording
         5: .line 55
      StackMap locals:
      StackMap stack:
            aload 2
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
         6: .line 60
            aload 0 /* this */
            getfield jdk.jfr.internal.ShutdownHook.recorder:Ljdk/jfr/internal/PlatformRecorder;
            invokevirtual jdk.jfr.internal.PlatformRecorder.destroy:()V
         7: .line 61
            return
        end local 0 // jdk.jfr.internal.ShutdownHook this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    8     0       this  Ljdk/jfr/internal/ShutdownHook;
            3    5     1  recording  Ljdk/jfr/internal/PlatformRecording;

  private void dump(jdk.jfr.internal.PlatformRecording);
    descriptor: (Ljdk/jfr/internal/PlatformRecording;)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // jdk.jfr.internal.ShutdownHook this
        start local 1 // jdk.jfr.internal.PlatformRecording recording
         0: .line 65
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getDestination:()Ljdk/jfr/internal/WriteableUserPath;
            astore 2 /* dest */
        start local 2 // jdk.jfr.internal.WriteableUserPath dest
         1: .line 66
            aload 2 /* dest */
            ifnonnull 4
         2: .line 67
            aload 0 /* this */
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.ShutdownHook.makeDumpOnExitPath:(Ljdk/jfr/internal/PlatformRecording;)Ljdk/jfr/internal/WriteableUserPath;
            astore 2 /* dest */
         3: .line 68
            aload 1 /* recording */
            aload 2 /* dest */
            invokevirtual jdk.jfr.internal.PlatformRecording.setDestination:(Ljdk/jfr/internal/WriteableUserPath;)V
         4: .line 70
      StackMap locals: jdk.jfr.internal.WriteableUserPath
      StackMap stack:
            aload 2 /* dest */
            ifnull 9
         5: .line 71
            aload 1 /* recording */
            ldc "Dump on exit"
            invokevirtual jdk.jfr.internal.PlatformRecording.stop:(Ljava/lang/String;)Z
            pop
        end local 2 // jdk.jfr.internal.WriteableUserPath dest
         6: .line 73
            goto 9
      StackMap locals: jdk.jfr.internal.ShutdownHook jdk.jfr.internal.PlatformRecording
      StackMap stack: java.lang.Exception
         7: pop
         8: .line 74
            getstatic jdk.jfr.internal.LogTag.JFR:Ljdk/jfr/internal/LogTag;
            getstatic jdk.jfr.internal.LogLevel.DEBUG:Ljdk/jfr/internal/LogLevel;
            aload 1 /* recording */
            invokedynamic get(Ljdk/jfr/internal/PlatformRecording;)Ljava/util/function/Supplier;
              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:
                  ()Ljava/lang/Object;
                  jdk/jfr/internal/ShutdownHook.lambda$0(Ljdk/jfr/internal/PlatformRecording;)Ljava/lang/String; (6)
                  ()Ljava/lang/String;
            invokestatic jdk.jfr.internal.Logger.log:(Ljdk/jfr/internal/LogTag;Ljdk/jfr/internal/LogLevel;Ljava/util/function/Supplier;)V
         9: .line 76
      StackMap locals:
      StackMap stack:
            return
        end local 1 // jdk.jfr.internal.PlatformRecording recording
        end local 0 // jdk.jfr.internal.ShutdownHook this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   10     0       this  Ljdk/jfr/internal/ShutdownHook;
            0   10     1  recording  Ljdk/jfr/internal/PlatformRecording;
            1    6     2       dest  Ljdk/jfr/internal/WriteableUserPath;
      Exception table:
        from    to  target  type
           0     6       7  Class java.lang.Exception
    MethodParameters:
           Name  Flags
      recording  

  private jdk.jfr.internal.WriteableUserPath makeDumpOnExitPath(jdk.jfr.internal.PlatformRecording);
    descriptor: (Ljdk/jfr/internal/PlatformRecording;)Ljdk/jfr/internal/WriteableUserPath;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=4, args_size=2
        start local 0 // jdk.jfr.internal.ShutdownHook this
        start local 1 // jdk.jfr.internal.PlatformRecording recording
         0: .line 80
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getRecording:()Ljdk/jfr/Recording;
            invokestatic jdk.jfr.internal.Utils.makeFilename:(Ljdk/jfr/Recording;)Ljava/lang/String;
            astore 2 /* name */
        start local 2 // java.lang.String name
         1: .line 81
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getNoDestinationDumpOnExitAccessControlContext:()Ljava/security/AccessControlContext;
            astore 3 /* acc */
        start local 3 // java.security.AccessControlContext acc
         2: .line 82
            new jdk.jfr.internal.ShutdownHook$1
            dup
            aload 0 /* this */
            aload 1 /* recording */
            aload 2 /* name */
            invokespecial jdk.jfr.internal.ShutdownHook$1.<init>:(Ljdk/jfr/internal/ShutdownHook;Ljdk/jfr/internal/PlatformRecording;Ljava/lang/String;)V
         3: .line 87
            aload 3 /* acc */
         4: .line 82
            invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
            checkcast jdk.jfr.internal.WriteableUserPath
         5: areturn
        end local 3 // java.security.AccessControlContext acc
        end local 2 // java.lang.String name
         6: .line 88
      StackMap locals:
      StackMap stack: java.security.PrivilegedActionException
            astore 2 /* e */
        start local 2 // java.security.PrivilegedActionException e
         7: .line 89
            aload 2 /* e */
            invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
            astore 3 /* t */
        start local 3 // java.lang.Throwable t
         8: .line 90
            aload 3 /* t */
            instanceof java.lang.SecurityException
            ifeq 10
         9: .line 91
            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 "Not allowed to create dump path for recording "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getId:()J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " on exit."
            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
        10: .line 93
      StackMap locals: java.security.PrivilegedActionException java.lang.Throwable
      StackMap stack:
            aload 3 /* t */
            instanceof java.io.IOException
            ifeq 12
        11: .line 94
            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 "Could not dump "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* recording */
            invokevirtual jdk.jfr.internal.PlatformRecording.getId:()J
            invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
            ldc " on exit."
            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
        12: .line 96
      StackMap locals:
      StackMap stack:
            aconst_null
            areturn
        end local 3 // java.lang.Throwable t
        end local 2 // java.security.PrivilegedActionException e
        end local 1 // jdk.jfr.internal.PlatformRecording recording
        end local 0 // jdk.jfr.internal.ShutdownHook this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   13     0       this  Ljdk/jfr/internal/ShutdownHook;
            0   13     1  recording  Ljdk/jfr/internal/PlatformRecording;
            1    6     2       name  Ljava/lang/String;
            2    6     3        acc  Ljava/security/AccessControlContext;
            7   13     2          e  Ljava/security/PrivilegedActionException;
            8   13     3          t  Ljava/lang/Throwable;
      Exception table:
        from    to  target  type
           0     5       6  Class java.security.PrivilegedActionException
    MethodParameters:
           Name  Flags
      recording  

  private static java.lang.String lambda$0(jdk.jfr.internal.PlatformRecording);
    descriptor: (Ljdk/jfr/internal/PlatformRecording;)Ljava/lang/String;
    flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
    Code:
      stack=3, locals=1, args_size=1
         0: .line 74
            new java.lang.StringBuilder
            dup
            ldc "Could not dump recording "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0
            invokevirtual jdk.jfr.internal.PlatformRecording.getName:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            ldc " on exit."
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            areturn
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
SourceFile: "ShutdownHook.java"
NestMembers:
  jdk.jfr.internal.ShutdownHook$1  jdk.jfr.internal.ShutdownHook$ExceptionHandler
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  jdk.jfr.internal.ShutdownHook$1
  final ExceptionHandler = jdk.jfr.internal.ShutdownHook$ExceptionHandler of jdk.jfr.internal.ShutdownHook