class com.sun.tools.jdi.SharedMemoryConnection extends com.sun.jdi.connect.spi.Connection
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.sun.tools.jdi.SharedMemoryConnection
  super_class: com.sun.jdi.connect.spi.Connection
{
  private long id;
    descriptor: J
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object receiveLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object sendLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object closeLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  private boolean closed;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private native byte receiveByte0(long);
    descriptor: (J)B
    flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      id    

  private native void sendByte0(long, byte);
    descriptor: (JB)V
    flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      id    
      b     

  private native void close0(long);
    descriptor: (J)V
    flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
    MethodParameters:
      Name  Flags
      id    

  private native byte[] receivePacket0(long);
    descriptor: (J)[B
    flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      id    

  private native void sendPacket0(long, byte[]);
    descriptor: (J[B)V
    flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      id    
      b     

  void handshake(long);
    descriptor: (J)V
    flags: (0x0000) 
    Code:
      stack=5, locals=6, args_size=2
        start local 0 // com.sun.tools.jdi.SharedMemoryConnection this
        start local 1 // long handshakeTimeout
         0: .line 49
            ldc "JDWP-Handshake"
            ldc "UTF-8"
            invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
            astore 3 /* hello */
        start local 3 // byte[] hello
         1: .line 51
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         2: goto 5
         3: .line 52
      StackMap locals: byte[] int
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
            aload 3 /* hello */
            iload 4 /* i */
            baload
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.sendByte0:(JB)V
         4: .line 51
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
         5: iload 4 /* i */
            aload 3 /* hello */
            arraylength
            if_icmplt 3
        end local 4 // int i
         6: .line 54
            iconst_0
            istore 4 /* i */
        start local 4 // int i
         7: goto 12
         8: .line 55
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.receiveByte0:(J)B
            istore 5 /* b */
        start local 5 // byte b
         9: .line 56
            iload 5 /* b */
            aload 3 /* hello */
            iload 4 /* i */
            baload
            if_icmpeq 11
        10: .line 57
            new java.io.IOException
            dup
            ldc "handshake failed - unrecognized message from target VM"
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
        end local 5 // byte b
        11: .line 54
      StackMap locals:
      StackMap stack:
            iinc 4 /* i */ 1
      StackMap locals:
      StackMap stack:
        12: iload 4 /* i */
            aload 3 /* hello */
            arraylength
            if_icmplt 8
        end local 4 // int i
        13: .line 60
            return
        end local 3 // byte[] hello
        end local 1 // long handshakeTimeout
        end local 0 // com.sun.tools.jdi.SharedMemoryConnection this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   14     0              this  Lcom/sun/tools/jdi/SharedMemoryConnection;
            0   14     1  handshakeTimeout  J
            1   14     3             hello  [B
            2    6     4                 i  I
            7   13     4                 i  I
            9   11     5                 b  B
    Exceptions:
      throws java.io.IOException
    MethodParameters:
                  Name  Flags
      handshakeTimeout  

  void <init>(long);
    descriptor: (J)V
    flags: (0x0000) 
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // com.sun.tools.jdi.SharedMemoryConnection this
        start local 1 // long id
         0: .line 63
            aload 0 /* this */
            invokespecial com.sun.jdi.connect.spi.Connection.<init>:()V
         1: .line 36
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield com.sun.tools.jdi.SharedMemoryConnection.receiveLock:Ljava/lang/Object;
         2: .line 37
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield com.sun.tools.jdi.SharedMemoryConnection.sendLock:Ljava/lang/Object;
         3: .line 38
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield com.sun.tools.jdi.SharedMemoryConnection.closeLock:Ljava/lang/Object;
         4: .line 39
            aload 0 /* this */
            iconst_0
            putfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
         5: .line 64
            aload 0 /* this */
            lload 1 /* id */
            putfield com.sun.tools.jdi.SharedMemoryConnection.id:J
         6: .line 65
            return
        end local 1 // long id
        end local 0 // com.sun.tools.jdi.SharedMemoryConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/sun/tools/jdi/SharedMemoryConnection;
            0    7     1    id  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      id    

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // com.sun.tools.jdi.SharedMemoryConnection this
         0: .line 68
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.closeLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 69
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
            ifne 4
         2: .line 70
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.close0:(J)V
         3: .line 71
            aload 0 /* this */
            iconst_1
            putfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
         4: .line 68
      StackMap locals: java.lang.Object
      StackMap stack:
            aload 1
            monitorexit
         5: goto 8
      StackMap locals:
      StackMap stack: java.lang.Throwable
         6: aload 1
            monitorexit
         7: athrow
         8: .line 74
      StackMap locals:
      StackMap stack:
            return
        end local 0 // com.sun.tools.jdi.SharedMemoryConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    9     0  this  Lcom/sun/tools/jdi/SharedMemoryConnection;
      Exception table:
        from    to  target  type
           1     5       6  any
           6     7       6  any

  public boolean isOpen();
    descriptor: ()Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // com.sun.tools.jdi.SharedMemoryConnection this
         0: .line 77
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.closeLock:Ljava/lang/Object;
            dup
            astore 1
            monitorenter
         1: .line 78
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
            ifeq 2
            iconst_0
            goto 3
      StackMap locals: java.lang.Object
      StackMap stack:
         2: iconst_1
      StackMap locals:
      StackMap stack: int
         3: aload 1
            monitorexit
         4: ireturn
         5: .line 77
      StackMap locals:
      StackMap stack: java.lang.Throwable
            aload 1
            monitorexit
         6: athrow
        end local 0 // com.sun.tools.jdi.SharedMemoryConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lcom/sun/tools/jdi/SharedMemoryConnection;
      Exception table:
        from    to  target  type
           1     4       5  any
           5     6       5  any

  public byte[] readPacket();
    descriptor: ()[B
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // com.sun.tools.jdi.SharedMemoryConnection this
         0: .line 83
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
            ifne 2
         1: .line 84
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "Connection closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.receiveLock:Ljava/lang/Object;
            dup
            astore 2
            monitorenter
         3: .line 90
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.receivePacket0:(J)[B
            astore 1 /* b */
        start local 1 // byte[] b
         4: .line 89
            aload 2
            monitorexit
         5: goto 12
        end local 1 // byte[] b
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection top java.lang.Object
      StackMap stack: java.lang.Throwable
         6: aload 2
            monitorexit
         7: athrow
         8: .line 92
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection
      StackMap stack: java.io.IOException
            astore 2 /* ioe */
        start local 2 // java.io.IOException ioe
         9: .line 93
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
            ifne 11
        10: .line 94
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "Connection closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 96
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection top java.io.IOException
      StackMap stack:
            aload 2 /* ioe */
            athrow
        end local 2 // java.io.IOException ioe
        start local 1 // byte[] b
        12: .line 99
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[]
      StackMap stack:
            aload 1 /* b */
            areturn
        end local 1 // byte[] b
        end local 0 // com.sun.tools.jdi.SharedMemoryConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Lcom/sun/tools/jdi/SharedMemoryConnection;
            4    6     1     b  [B
           12   13     1     b  [B
            9   12     2   ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
           3     5       6  any
           6     7       6  any
           2     8       8  Class java.io.IOException
    Exceptions:
      throws java.io.IOException

  public void writePacket(byte[]);
    descriptor: ([B)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=8, args_size=2
        start local 0 // com.sun.tools.jdi.SharedMemoryConnection this
        start local 1 // byte[] b
         0: .line 103
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
            ifne 2
         1: .line 104
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "Connection closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 110
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            arraylength
            bipush 11
            if_icmpge 4
         3: .line 111
            new java.lang.IllegalArgumentException
            dup
            ldc "packet is insufficient size"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 113
      StackMap locals:
      StackMap stack:
            aload 1 /* b */
            iconst_0
            baload
            sipush 255
            iand
            istore 2 /* b0 */
        start local 2 // int b0
         5: .line 114
            aload 1 /* b */
            iconst_1
            baload
            sipush 255
            iand
            istore 3 /* b1 */
        start local 3 // int b1
         6: .line 115
            aload 1 /* b */
            iconst_2
            baload
            sipush 255
            iand
            istore 4 /* b2 */
        start local 4 // int b2
         7: .line 116
            aload 1 /* b */
            iconst_3
            baload
            sipush 255
            iand
            istore 5 /* b3 */
        start local 5 // int b3
         8: .line 117
            iload 2 /* b0 */
            bipush 24
            ishl
            iload 3 /* b1 */
            bipush 16
            ishl
            ior
            iload 4 /* b2 */
            bipush 8
            ishl
            ior
            iload 5 /* b3 */
            iconst_0
            ishl
            ior
            istore 6 /* len */
        start local 6 // int len
         9: .line 118
            iload 6 /* len */
            bipush 11
            if_icmpge 11
        10: .line 119
            new java.lang.IllegalArgumentException
            dup
            ldc "packet is insufficient size"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        11: .line 125
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[] int int int int int
      StackMap stack:
            iload 6 /* len */
            aload 1 /* b */
            arraylength
            if_icmple 13
        12: .line 126
            new java.lang.IllegalArgumentException
            dup
            ldc "length mis-match"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        13: .line 131
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.sendLock:Ljava/lang/Object;
            dup
            astore 7
            monitorenter
        14: .line 132
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
            aload 1 /* b */
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.sendPacket0:(J[B)V
        15: .line 131
            aload 7
            monitorexit
        16: goto 23
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[] int int int int int java.lang.Object
      StackMap stack: java.lang.Throwable
        17: aload 7
            monitorexit
        18: athrow
        19: .line 134
      StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[] int int int int int
      StackMap stack: java.io.IOException
            astore 7 /* ioe */
        start local 7 // java.io.IOException ioe
        20: .line 135
            aload 0 /* this */
            invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
            ifne 22
        21: .line 136
            new com.sun.jdi.connect.spi.ClosedConnectionException
            dup
            ldc "Connection closed"
            invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
            athrow
        22: .line 138
      StackMap locals: java.io.IOException
      StackMap stack:
            aload 7 /* ioe */
            athrow
        end local 7 // java.io.IOException ioe
        23: .line 141
      StackMap locals:
      StackMap stack:
            return
        end local 6 // int len
        end local 5 // int b3
        end local 4 // int b2
        end local 3 // int b1
        end local 2 // int b0
        end local 1 // byte[] b
        end local 0 // com.sun.tools.jdi.SharedMemoryConnection this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   24     0  this  Lcom/sun/tools/jdi/SharedMemoryConnection;
            0   24     1     b  [B
            5   24     2    b0  I
            6   24     3    b1  I
            7   24     4    b2  I
            8   24     5    b3  I
            9   24     6   len  I
           20   23     7   ioe  Ljava/io/IOException;
      Exception table:
        from    to  target  type
          14    16      17  any
          17    18      17  any
          13    19      19  Class java.io.IOException
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      b     
}
SourceFile: "SharedMemoryConnection.java"