class com.sun.tools.jdi.SocketConnection extends com.sun.jdi.connect.spi.Connection
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.jdi.SocketConnection
super_class: com.sun.jdi.connect.spi.Connection
{
private java.net.Socket socket;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.io.OutputStream socketOutput;
descriptor: Ljava/io/OutputStream;
flags: (0x0002) ACC_PRIVATE
private java.io.InputStream socketInput;
descriptor: Ljava/io/InputStream;
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
void <init>(java.net.Socket);
descriptor: (Ljava/net/Socket;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial com.sun.jdi.connect.spi.Connection.<init>:()V
1: aload 0
iconst_0
putfield com.sun.tools.jdi.SocketConnection.closed:Z
2: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.sun.tools.jdi.SocketConnection.receiveLock:Ljava/lang/Object;
3: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.sun.tools.jdi.SocketConnection.sendLock:Ljava/lang/Object;
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
5: aload 0
aload 1
putfield com.sun.tools.jdi.SocketConnection.socket:Ljava/net/Socket;
6: aload 1
iconst_1
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
7: aload 0
aload 1
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
putfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
8: aload 0
aload 1
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
putfield com.sun.tools.jdi.SocketConnection.socketOutput:Ljava/io/OutputStream;
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/tools/jdi/SocketConnection;
0 10 1 socket Ljava/net/Socket;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
socket
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.jdi.SocketConnection.closeLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.tools.jdi.SocketConnection.closed:Z
ifeq 4
2: aload 1
monitorexit
3: return
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield com.sun.tools.jdi.SocketConnection.socketOutput:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
5: aload 0
getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
6: aload 0
getfield com.sun.tools.jdi.SocketConnection.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
7: aload 0
iconst_1
putfield com.sun.tools.jdi.SocketConnection.closed:Z
8: aload 1
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/sun/tools/jdi/SocketConnection;
Exception table:
from to target type
1 3 10 any
4 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
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.SocketConnection.closeLock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield com.sun.tools.jdi.SocketConnection.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/SocketConnection;
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=4, locals=11, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
ifne 2
1: new com.sun.jdi.connect.spi.ClosedConnectionException
dup
ldc "connection is 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.SocketConnection.receiveLock:Ljava/lang/Object;
dup
astore 1
monitorenter
3: aload 0
getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 2
start local 2 4: aload 0
getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 3
start local 3 5: aload 0
getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 4
start local 4 6: aload 0
getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 5
start local 5 7: goto 12
end local 5 end local 4 end local 3 end local 2 StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object
StackMap stack: java.io.IOException
8: astore 6
start local 6 9: aload 0
invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
ifne 11
10: new com.sun.jdi.connect.spi.ClosedConnectionException
dup
ldc "connection is closed"
invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object top top top top java.io.IOException
StackMap stack:
aload 6
athrow
end local 6 start local 2 start local 3 start local 4 start local 5 12: StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int
StackMap stack:
iload 2
ifge 15
13: iconst_0
newarray 8
aload 1
monitorexit
14: areturn
15: StackMap locals:
StackMap stack:
iload 3
iflt 16
iload 4
iflt 16
iload 5
ifge 17
16: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "protocol error - premature EOF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
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 18: iload 6
ifge 20
19: new java.io.IOException
dup
ldc "protocol error - invalid length"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals: int
StackMap stack:
iload 6
newarray 8
astore 7
start local 7 21: aload 7
iconst_0
iload 2
i2b
bastore
22: aload 7
iconst_1
iload 3
i2b
bastore
23: aload 7
iconst_2
iload 4
i2b
bastore
24: aload 7
iconst_3
iload 5
i2b
bastore
25: iconst_4
istore 8
start local 8 26: iload 6
iload 8
isub
istore 6
27: goto 38
28: StackMap locals: byte[] int
StackMap stack:
aload 0
getfield com.sun.tools.jdi.SocketConnection.socketInput:Ljava/io/InputStream;
aload 7
iload 8
iload 6
invokevirtual java.io.InputStream.read:([BII)I
istore 9
start local 9 29: goto 34
end local 9 StackMap locals:
StackMap stack: java.io.IOException
30: astore 10
start local 10 31: aload 0
invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
ifne 33
32: new com.sun.jdi.connect.spi.ClosedConnectionException
dup
ldc "connection is closed"
invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
athrow
33: StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int int byte[] int top java.io.IOException
StackMap stack:
aload 10
athrow
end local 10 start local 9 34: StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object int int int int int byte[] int int
StackMap stack:
iload 9
ifge 36
35: new java.io.IOException
dup
ldc "protocol error - premature EOF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
36: StackMap locals:
StackMap stack:
iload 6
iload 9
isub
istore 6
37: iload 8
iload 9
iadd
istore 8
end local 9 38: StackMap locals:
StackMap stack:
iload 6
ifgt 28
39: aload 7
aload 1
monitorexit
40: areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 41: StackMap locals: com.sun.tools.jdi.SocketConnection java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
42: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 43 0 this Lcom/sun/tools/jdi/SocketConnection;
4 8 2 b1 I
12 41 2 b1 I
5 8 3 b2 I
12 41 3 b2 I
6 8 4 b3 I
12 41 4 b3 I
7 8 5 b4 I
12 41 5 b4 I
9 12 6 ioe Ljava/io/IOException;
18 41 6 len I
21 41 7 b [B
26 41 8 off I
29 30 9 count I
34 38 9 count I
31 34 10 ioe Ljava/io/IOException;
Exception table:
from to target type
3 7 8 Class java.io.IOException
28 29 30 Class java.io.IOException
3 14 41 any
15 40 41 any
41 42 41 any
Exceptions:
throws java.io.IOException
public void writePacket(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
ifne 2
1: new com.sun.jdi.connect.spi.ClosedConnectionException
dup
ldc "connection is 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.SocketConnection 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.SocketConnection.sendLock:Ljava/lang/Object;
dup
astore 7
monitorenter
14: aload 0
getfield com.sun.tools.jdi.SocketConnection.socketOutput:Ljava/io/OutputStream;
aload 1
iconst_0
iload 6
invokevirtual java.io.OutputStream.write:([BII)V
15: goto 20
StackMap locals: com.sun.tools.jdi.SocketConnection byte[] int int int int int java.lang.Object
StackMap stack: java.io.IOException
16: astore 8
start local 8 17: aload 0
invokevirtual com.sun.tools.jdi.SocketConnection.isOpen:()Z
ifne 19
18: new com.sun.jdi.connect.spi.ClosedConnectionException
dup
ldc "connection is closed"
invokespecial com.sun.jdi.connect.spi.ClosedConnectionException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: java.io.IOException
StackMap stack:
aload 8
athrow
end local 8 20: StackMap locals:
StackMap stack:
aload 7
monitorexit
21: goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
22: aload 7
monitorexit
23: athrow
24: 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 25 0 this Lcom/sun/tools/jdi/SocketConnection;
0 25 1 b [B
5 25 2 b0 I
6 25 3 b1 I
7 25 4 b2 I
8 25 5 b3 I
9 25 6 len I
17 20 8 ioe Ljava/io/IOException;
Exception table:
from to target type
14 15 16 Class java.io.IOException
14 21 22 any
22 23 22 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
}
SourceFile: "SocketTransportService.java"