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 start local 1 0: ldc "JDWP-Handshake"
ldc "UTF-8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 3
start local 3 1: iconst_0
istore 4
start local 4 2: goto 5
3: StackMap locals: byte[] int
StackMap stack:
aload 0
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
aload 3
iload 4
baload
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.sendByte0:(JB)V
4: iinc 4 1
StackMap locals:
StackMap stack:
5: iload 4
aload 3
arraylength
if_icmplt 3
end local 4 6: iconst_0
istore 4
start local 4 7: goto 12
8: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.receiveByte0:(J)B
istore 5
start local 5 9: iload 5
aload 3
iload 4
baload
if_icmpeq 11
10: 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 11: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
aload 3
arraylength
if_icmplt 8
end local 4 13: return
end local 3 end local 1 end local 0 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 start local 1 0: aload 0
invokespecial com.sun.jdi.connect.spi.Connection.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.sun.tools.jdi.SharedMemoryConnection.receiveLock:Ljava/lang/Object;
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.sun.tools.jdi.SharedMemoryConnection.sendLock:Ljava/lang/Object;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.sun.tools.jdi.SharedMemoryConnection.closeLock:Ljava/lang/Object;
4: aload 0
iconst_0
putfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
5: aload 0
lload 1
putfield com.sun.tools.jdi.SharedMemoryConnection.id:J
6: return
end local 1 end local 0 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 0: aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.closeLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
ifne 4
2: aload 0
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.close0:(J)V
3: aload 0
iconst_1
putfield com.sun.tools.jdi.SharedMemoryConnection.closed:Z
4: 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: StackMap locals:
StackMap stack:
return
end local 0 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 0: aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.closeLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
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: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
6: athrow
end local 0 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 0: aload 0
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
ifne 2
1: 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: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.receiveLock:Ljava/lang/Object;
dup
astore 2
monitorenter
3: aload 0
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.receivePacket0:(J)[B
astore 1
start local 1 4: aload 2
monitorexit
5: goto 12
end local 1 StackMap locals: com.sun.tools.jdi.SharedMemoryConnection top java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals: com.sun.tools.jdi.SharedMemoryConnection
StackMap stack: java.io.IOException
astore 2
start local 2 9: aload 0
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
ifne 11
10: 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: StackMap locals: com.sun.tools.jdi.SharedMemoryConnection top java.io.IOException
StackMap stack:
aload 2
athrow
end local 2 start local 1 12: StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[]
StackMap stack:
aload 1
areturn
end local 1 end local 0 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 start local 1 0: aload 0
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
ifne 2
1: 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: StackMap locals:
StackMap stack:
aload 1
arraylength
bipush 11
if_icmpge 4
3: new java.lang.IllegalArgumentException
dup
ldc "packet is insufficient size"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
iconst_0
baload
sipush 255
iand
istore 2
start local 2 5: aload 1
iconst_1
baload
sipush 255
iand
istore 3
start local 3 6: aload 1
iconst_2
baload
sipush 255
iand
istore 4
start local 4 7: aload 1
iconst_3
baload
sipush 255
iand
istore 5
start local 5 8: iload 2
bipush 24
ishl
iload 3
bipush 16
ishl
ior
iload 4
bipush 8
ishl
ior
iload 5
iconst_0
ishl
ior
istore 6
start local 6 9: iload 6
bipush 11
if_icmpge 11
10: new java.lang.IllegalArgumentException
dup
ldc "packet is insufficient size"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[] int int int int int
StackMap stack:
iload 6
aload 1
arraylength
if_icmple 13
12: new java.lang.IllegalArgumentException
dup
ldc "length mis-match"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.sendLock:Ljava/lang/Object;
dup
astore 7
monitorenter
14: aload 0
aload 0
getfield com.sun.tools.jdi.SharedMemoryConnection.id:J
aload 1
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.sendPacket0:(J[B)V
15: 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: StackMap locals: com.sun.tools.jdi.SharedMemoryConnection byte[] int int int int int
StackMap stack: java.io.IOException
astore 7
start local 7 20: aload 0
invokevirtual com.sun.tools.jdi.SharedMemoryConnection.isOpen:()Z
ifne 22
21: 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: StackMap locals: java.io.IOException
StackMap stack:
aload 7
athrow
end local 7 23: StackMap locals:
StackMap stack:
return
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 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"