public class sun.tools.attach.SolarisVirtualMachine extends sun.tools.attach.HotSpotVirtualMachine
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.tools.attach.SolarisVirtualMachine
  super_class: sun.tools.attach.HotSpotVirtualMachine
{
  private static final java.lang.String tmpdir;
    descriptor: Ljava/lang/String;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: "/tmp"

  private int fd;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 40
            ldc Lsun/tools/attach/SolarisVirtualMachine;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic sun.tools.attach.SolarisVirtualMachine.$assertionsDisabled:Z
         3: .line 245
            ldc "attach"
            invokestatic java.lang.System.loadLibrary:(Ljava/lang/String;)V
         4: .line 246
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(com.sun.tools.attach.spi.AttachProvider, java.lang.String);
    descriptor: (Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
    flags: (0x0000) 
    Code:
      stack=4, locals=10, args_size=3
        start local 0 // sun.tools.attach.SolarisVirtualMachine this
        start local 1 // com.sun.tools.attach.spi.AttachProvider provider
        start local 2 // java.lang.String vmid
         0: .line 57
            aload 0 /* this */
            aload 1 /* provider */
            aload 2 /* vmid */
            invokespecial sun.tools.attach.HotSpotVirtualMachine.<init>:(Lcom/sun/tools/attach/spi/AttachProvider;Ljava/lang/String;)V
         1: .line 49
            aload 0 /* this */
            iconst_m1
            putfield sun.tools.attach.SolarisVirtualMachine.fd:I
         2: .line 61
            aload 2 /* vmid */
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 3 /* pid */
        start local 3 // int pid
         3: .line 62
            goto 6
        end local 3 // int pid
      StackMap locals: sun.tools.attach.SolarisVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String
      StackMap stack: java.lang.NumberFormatException
         4: pop
         5: .line 63
            new com.sun.tools.attach.AttachNotSupportedException
            dup
            ldc "invalid process identifier"
            invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
            athrow
        start local 3 // int pid
         6: .line 70
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            iload 3 /* pid */
            invokevirtual sun.tools.attach.SolarisVirtualMachine.openDoor:(I)I
            putfield sun.tools.attach.SolarisVirtualMachine.fd:I
         7: .line 71
            goto 30
      StackMap locals:
      StackMap stack: java.io.FileNotFoundException
         8: pop
         9: .line 72
            aload 0 /* this */
            iload 3 /* pid */
            invokevirtual sun.tools.attach.SolarisVirtualMachine.createAttachFile:(I)Ljava/io/File;
            astore 4 /* f */
        start local 4 // java.io.File f
        10: .line 76
            iload 3 /* pid */
            invokestatic sun.tools.attach.SolarisVirtualMachine.sigquit:(I)V
        11: .line 79
            iconst_0
            istore 5 /* i */
        start local 5 // int i
        12: .line 80
            ldc 200
            lstore 6 /* delay */
        start local 6 // long delay
        13: .line 81
            aload 0 /* this */
            invokevirtual sun.tools.attach.SolarisVirtualMachine.attachTimeout:()J
            lload 6 /* delay */
            ldiv
            l2i
            istore 8 /* retries */
        start local 8 // int retries
        14: .line 84
      StackMap locals: sun.tools.attach.SolarisVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String int java.io.File int long int
      StackMap stack:
            lload 6 /* delay */
            invokestatic java.lang.Thread.sleep:(J)V
        15: .line 85
            goto 17
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
        16: pop
        17: .line 87
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            iload 3 /* pid */
            invokevirtual sun.tools.attach.SolarisVirtualMachine.openDoor:(I)I
            putfield sun.tools.attach.SolarisVirtualMachine.fd:I
        18: .line 88
            goto 20
      StackMap locals:
      StackMap stack: java.io.FileNotFoundException
        19: pop
        20: .line 89
      StackMap locals:
      StackMap stack:
            iinc 5 /* i */ 1
        21: .line 90
            iload 5 /* i */
            iload 8 /* retries */
            if_icmpgt 22
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            iconst_m1
            if_icmpeq 14
        22: .line 91
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            iconst_m1
            if_icmpne 29
        23: .line 92
            new com.sun.tools.attach.AttachNotSupportedException
            dup
        24: .line 93
            ldc "Unable to open door: target process not responding or HotSpot VM not loaded"
        25: .line 92
            invokespecial com.sun.tools.attach.AttachNotSupportedException.<init>:(Ljava/lang/String;)V
            athrow
        end local 8 // int retries
        end local 6 // long delay
        end local 5 // int i
        26: .line 96
      StackMap locals: sun.tools.attach.SolarisVirtualMachine com.sun.tools.attach.spi.AttachProvider java.lang.String int java.io.File
      StackMap stack: java.lang.Throwable
            astore 9
        27: .line 97
            aload 4 /* f */
            invokevirtual java.io.File.delete:()Z
            pop
        28: .line 98
            aload 9
            athrow
        29: .line 97
      StackMap locals:
      StackMap stack:
            aload 4 /* f */
            invokevirtual java.io.File.delete:()Z
            pop
        end local 4 // java.io.File f
        30: .line 100
      StackMap locals:
      StackMap stack:
            getstatic sun.tools.attach.SolarisVirtualMachine.$assertionsDisabled:Z
            ifne 31
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            ifge 31
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        31: .line 101
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int pid
        end local 2 // java.lang.String vmid
        end local 1 // com.sun.tools.attach.spi.AttachProvider provider
        end local 0 // sun.tools.attach.SolarisVirtualMachine this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   32     0      this  Lsun/tools/attach/SolarisVirtualMachine;
            0   32     1  provider  Lcom/sun/tools/attach/spi/AttachProvider;
            0   32     2      vmid  Ljava/lang/String;
            3    4     3       pid  I
            6   32     3       pid  I
           10   30     4         f  Ljava/io/File;
           12   26     5         i  I
           13   26     6     delay  J
           14   26     8   retries  I
      Exception table:
        from    to  target  type
           2     3       4  Class java.lang.NumberFormatException
           6     7       8  Class java.io.FileNotFoundException
          14    15      16  Class java.lang.InterruptedException
          17    18      19  Class java.io.FileNotFoundException
          10    26      26  any
    Exceptions:
      throws com.sun.tools.attach.AttachNotSupportedException, java.io.IOException
    MethodParameters:
          Name  Flags
      provider  
      vmid      

  public void detach();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // sun.tools.attach.SolarisVirtualMachine this
         0: .line 107
            aload 0 /* this */
            dup
            astore 1
            monitorenter
         1: .line 108
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            iconst_m1
            if_icmpeq 4
         2: .line 109
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            invokestatic sun.tools.attach.SolarisVirtualMachine.close:(I)V
         3: .line 110
            aload 0 /* this */
            iconst_m1
            putfield sun.tools.attach.SolarisVirtualMachine.fd:I
         4: .line 107
      StackMap locals: sun.tools.attach.SolarisVirtualMachine
      StackMap stack:
            aload 1
            monitorexit
         5: goto 8
      StackMap locals:
      StackMap stack: java.lang.Throwable
         6: aload 1
            monitorexit
         7: athrow
         8: .line 113
      StackMap locals:
      StackMap stack:
            return
        end local 0 // sun.tools.attach.SolarisVirtualMachine this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lsun/tools/attach/SolarisVirtualMachine;
      Exception table:
        from    to  target  type
           1     5       6  any
           6     7       6  any
    Exceptions:
      throws java.io.IOException

  java.io.InputStream execute(java.lang.String, java.lang.Object[]);
    descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/InputStream;
    flags: (0x0080) ACC_VARARGS
    Code:
      stack=4, locals=8, args_size=3
        start local 0 // sun.tools.attach.SolarisVirtualMachine this
        start local 1 // java.lang.String cmd
        start local 2 // java.lang.Object[] args
         0: .line 119
            getstatic sun.tools.attach.SolarisVirtualMachine.$assertionsDisabled:Z
            ifne 1
            aload 2 /* args */
            arraylength
            iconst_3
            if_icmple 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 123
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            dup
            astore 4
            monitorenter
         2: .line 124
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            iconst_m1
            if_icmpne 4
         3: .line 125
            new java.io.IOException
            dup
            ldc "Detached from target VM"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 127
      StackMap locals: sun.tools.attach.SolarisVirtualMachine java.lang.String java.lang.Object[] top sun.tools.attach.SolarisVirtualMachine
      StackMap stack:
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            istore 3 /* door */
        start local 3 // int door
         5: .line 123
            aload 4
            monitorexit
         6: goto 9
        end local 3 // int door
      StackMap locals:
      StackMap stack: java.lang.Throwable
         7: aload 4
            monitorexit
         8: athrow
        start local 3 // int door
         9: .line 131
      StackMap locals: sun.tools.attach.SolarisVirtualMachine java.lang.String java.lang.Object[] int
      StackMap stack:
            iload 3 /* door */
            aload 1 /* cmd */
            aload 2 /* args */
            invokestatic sun.tools.attach.SolarisVirtualMachine.enqueue:(ILjava/lang/String;[Ljava/lang/Object;)I
            istore 4 /* s */
        start local 4 // int s
        10: .line 132
            getstatic sun.tools.attach.SolarisVirtualMachine.$assertionsDisabled:Z
            ifne 11
            iload 4 /* s */
            ifge 11
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        11: .line 136
      StackMap locals: int
      StackMap stack:
            new sun.tools.attach.SolarisVirtualMachine$SocketInputStream
            dup
            aload 0 /* this */
            iload 4 /* s */
            invokespecial sun.tools.attach.SolarisVirtualMachine$SocketInputStream.<init>:(Lsun/tools/attach/SolarisVirtualMachine;I)V
            astore 5 /* sis */
        start local 5 // sun.tools.attach.SolarisVirtualMachine$SocketInputStream sis
        12: .line 141
            aload 0 /* this */
            aload 5 /* sis */
            invokevirtual sun.tools.attach.SolarisVirtualMachine.readInt:(Ljava/io/InputStream;)I
            istore 6 /* completionStatus */
        start local 6 // int completionStatus
        13: .line 142
            goto 17
        end local 6 // int completionStatus
      StackMap locals: sun.tools.attach.SolarisVirtualMachine java.lang.String java.lang.Object[] int int sun.tools.attach.SolarisVirtualMachine$SocketInputStream
      StackMap stack: java.io.IOException
        14: astore 7 /* ioe */
        start local 7 // java.io.IOException ioe
        15: .line 143
            aload 5 /* sis */
            invokevirtual sun.tools.attach.SolarisVirtualMachine$SocketInputStream.close:()V
        16: .line 144
            aload 7 /* ioe */
            athrow
        end local 7 // java.io.IOException ioe
        start local 6 // int completionStatus
        17: .line 149
      StackMap locals: int
      StackMap stack:
            iload 6 /* completionStatus */
            ifeq 22
        18: .line 150
            aload 5 /* sis */
            invokevirtual sun.tools.attach.SolarisVirtualMachine$SocketInputStream.close:()V
        19: .line 151
            aload 1 /* cmd */
            ldc "load"
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 21
        20: .line 152
            new com.sun.tools.attach.AgentLoadException
            dup
            ldc "Failed to load agent library"
            invokespecial com.sun.tools.attach.AgentLoadException.<init>:(Ljava/lang/String;)V
            athrow
        21: .line 154
      StackMap locals:
      StackMap stack:
            new java.io.IOException
            dup
            ldc "Command failed in target VM"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 159
      StackMap locals:
      StackMap stack:
            aload 5 /* sis */
            areturn
        end local 6 // int completionStatus
        end local 5 // sun.tools.attach.SolarisVirtualMachine$SocketInputStream sis
        end local 4 // int s
        end local 3 // int door
        end local 2 // java.lang.Object[] args
        end local 1 // java.lang.String cmd
        end local 0 // sun.tools.attach.SolarisVirtualMachine this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   23     0              this  Lsun/tools/attach/SolarisVirtualMachine;
            0   23     1               cmd  Ljava/lang/String;
            0   23     2              args  [Ljava/lang/Object;
            5    7     3              door  I
            9   23     3              door  I
           10   23     4                 s  I
           12   23     5               sis  Lsun/tools/attach/SolarisVirtualMachine$SocketInputStream;
           13   14     6  completionStatus  I
           17   23     6  completionStatus  I
           15   17     7               ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           2     6       7  any
           7     8       7  any
          12    13      14  Class java.io.IOException
    Exceptions:
      throws com.sun.tools.attach.AgentLoadException, java.io.IOException
    MethodParameters:
      Name  Flags
      cmd   
      args  

  private int openDoor(int);
    descriptor: (I)I
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=4, args_size=2
        start local 0 // sun.tools.attach.SolarisVirtualMachine this
        start local 1 // int pid
         0: .line 197
            new java.lang.StringBuilder
            dup
            ldc "/tmp/.java_pid"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* pid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* path */
        start local 2 // java.lang.String path
         1: .line 198
            aload 0 /* this */
            aload 2 /* path */
            invokestatic sun.tools.attach.SolarisVirtualMachine.open:(Ljava/lang/String;)I
            putfield sun.tools.attach.SolarisVirtualMachine.fd:I
         2: .line 203
            aload 2 /* path */
            invokestatic sun.tools.attach.SolarisVirtualMachine.checkPermissions:(Ljava/lang/String;)V
         3: .line 204
            goto 7
      StackMap locals: sun.tools.attach.SolarisVirtualMachine int java.lang.String
      StackMap stack: java.io.IOException
         4: astore 3 /* ioe */
        start local 3 // java.io.IOException ioe
         5: .line 205
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            invokestatic sun.tools.attach.SolarisVirtualMachine.close:(I)V
         6: .line 206
            aload 3 /* ioe */
            athrow
        end local 3 // java.io.IOException ioe
         7: .line 208
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.tools.attach.SolarisVirtualMachine.fd:I
            ireturn
        end local 2 // java.lang.String path
        end local 1 // int pid
        end local 0 // sun.tools.attach.SolarisVirtualMachine this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Lsun/tools/attach/SolarisVirtualMachine;
            0    8     1   pid  I
            1    8     2  path  Ljava/lang/String;
            5    7     3   ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           2     3       4  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      pid   

  private java.io.File createAttachFile(int);
    descriptor: (I)Ljava/io/File;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=5, args_size=2
        start local 0 // sun.tools.attach.SolarisVirtualMachine this
        start local 1 // int pid
         0: .line 216
            new java.lang.StringBuilder
            dup
            ldc ".attach_pid"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* pid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 2 /* fn */
        start local 2 // java.lang.String fn
         1: .line 217
            new java.lang.StringBuilder
            dup
            ldc "/proc/"
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* pid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            ldc "/cwd/"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            aload 2 /* fn */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            astore 3 /* path */
        start local 3 // java.lang.String path
         2: .line 218
            new java.io.File
            dup
            aload 3 /* path */
            invokespecial java.io.File.<init>:(Ljava/lang/String;)V
            astore 4 /* f */
        start local 4 // java.io.File f
         3: .line 220
            aload 4 /* f */
            invokevirtual java.io.File.createNewFile:()Z
            pop
         4: .line 221
            goto 8
      StackMap locals: sun.tools.attach.SolarisVirtualMachine int java.lang.String java.lang.String java.io.File
      StackMap stack: java.io.IOException
         5: pop
         6: .line 222
            new java.io.File
            dup
            ldc "/tmp"
            aload 2 /* fn */
            invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
            astore 4 /* f */
         7: .line 223
            aload 4 /* f */
            invokevirtual java.io.File.createNewFile:()Z
            pop
         8: .line 225
      StackMap locals:
      StackMap stack:
            aload 4 /* f */
            areturn
        end local 4 // java.io.File f
        end local 3 // java.lang.String path
        end local 2 // java.lang.String fn
        end local 1 // int pid
        end local 0 // sun.tools.attach.SolarisVirtualMachine this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lsun/tools/attach/SolarisVirtualMachine;
            0    9     1   pid  I
            1    9     2    fn  Ljava/lang/String;
            2    9     3  path  Ljava/lang/String;
            3    9     4     f  Ljava/io/File;
      Exception table:
        from    to  target  type
           3     4       5  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      pid   

  static native int open(java.lang.String);
    descriptor: (Ljava/lang/String;)I
    flags: (0x0108) ACC_STATIC, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      path  

  static native void close(int);
    descriptor: (I)V
    flags: (0x0108) ACC_STATIC, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      fd    

  static native int read(int, byte[], int, int);
    descriptor: (I[BII)I
    flags: (0x0108) ACC_STATIC, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
        Name  Flags
      fd      
      buf     
      off     
      buflen  

  static native void checkPermissions(java.lang.String);
    descriptor: (Ljava/lang/String;)V
    flags: (0x0108) ACC_STATIC, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      path  

  static native void sigquit(int);
    descriptor: (I)V
    flags: (0x0108) ACC_STATIC, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      pid   

  static native int enqueue(int, java.lang.String, java.lang.Object[]);
    descriptor: (ILjava/lang/String;[Ljava/lang/Object;)I
    flags: (0x0188) ACC_STATIC, ACC_VARARGS, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      fd    
      cmd   
      args  
}
SourceFile: "SolarisVirtualMachine.java"
NestMembers:
  sun.tools.attach.SolarisVirtualMachine$SocketInputStream
InnerClasses:
  private SocketInputStream = sun.tools.attach.SolarisVirtualMachine$SocketInputStream of sun.tools.attach.SolarisVirtualMachine