final class jdk.jfr.internal.instrument.SocketInputStreamInstrumentor
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.instrument.SocketInputStreamInstrumentor
super_class: java.lang.Object
{
private java.net.Socket parent;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/instrument/SocketInputStreamInstrumentor;
public int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.jfr.events.SocketReadEvent.EVENT:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast jdk.jfr.events.SocketReadEvent
astore 4
start local 4 1: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.isEnabled:()Z
ifne 3
2: aload 0
aload 1
iload 2
iload 3
invokevirtual jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.read:([BII)I
ireturn
3: StackMap locals: jdk.jfr.events.SocketReadEvent
StackMap stack:
iconst_0
istore 5
start local 5 4: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.begin:()V
5: aload 0
aload 1
iload 2
iload 3
invokevirtual jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.read:([BII)I
istore 5
6: goto 22
StackMap locals: jdk.jfr.internal.instrument.SocketInputStreamInstrumentor byte[] int int jdk.jfr.events.SocketReadEvent int
StackMap stack: java.lang.Throwable
7: astore 6
8: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.end:()V
9: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.shouldCommit:()Z
ifeq 21
10: aload 0
getfield jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.parent:Ljava/net/Socket;
invokevirtual java.net.Socket.getInetAddress:()Ljava/net/InetAddress;
astore 7
start local 7 11: aload 4
aload 7
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
putfield jdk.jfr.events.SocketReadEvent.host:Ljava/lang/String;
12: aload 4
aload 7
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
putfield jdk.jfr.events.SocketReadEvent.address:Ljava/lang/String;
13: aload 4
aload 0
getfield jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.parent:Ljava/net/Socket;
invokevirtual java.net.Socket.getPort:()I
putfield jdk.jfr.events.SocketReadEvent.port:I
14: iload 5
ifge 17
15: aload 4
iconst_1
putfield jdk.jfr.events.SocketReadEvent.endOfStream:Z
16: goto 18
17: StackMap locals: java.lang.Throwable java.net.InetAddress
StackMap stack:
aload 4
iload 5
i2l
putfield jdk.jfr.events.SocketReadEvent.bytesRead:J
18: StackMap locals:
StackMap stack:
aload 4
aload 0
getfield jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.parent:Ljava/net/Socket;
invokevirtual java.net.Socket.getSoTimeout:()I
i2l
putfield jdk.jfr.events.SocketReadEvent.timeout:J
19: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.commit:()V
20: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.reset:()V
end local 7 21: StackMap locals:
StackMap stack:
aload 6
athrow
22: StackMap locals:
StackMap stack:
aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.end:()V
23: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.shouldCommit:()Z
ifeq 35
24: aload 0
getfield jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.parent:Ljava/net/Socket;
invokevirtual java.net.Socket.getInetAddress:()Ljava/net/InetAddress;
astore 7
start local 7 25: aload 4
aload 7
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
putfield jdk.jfr.events.SocketReadEvent.host:Ljava/lang/String;
26: aload 4
aload 7
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
putfield jdk.jfr.events.SocketReadEvent.address:Ljava/lang/String;
27: aload 4
aload 0
getfield jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.parent:Ljava/net/Socket;
invokevirtual java.net.Socket.getPort:()I
putfield jdk.jfr.events.SocketReadEvent.port:I
28: iload 5
ifge 31
29: aload 4
iconst_1
putfield jdk.jfr.events.SocketReadEvent.endOfStream:Z
30: goto 32
31: StackMap locals: jdk.jfr.internal.instrument.SocketInputStreamInstrumentor byte[] int int jdk.jfr.events.SocketReadEvent int top java.net.InetAddress
StackMap stack:
aload 4
iload 5
i2l
putfield jdk.jfr.events.SocketReadEvent.bytesRead:J
32: StackMap locals:
StackMap stack:
aload 4
aload 0
getfield jdk.jfr.internal.instrument.SocketInputStreamInstrumentor.parent:Ljava/net/Socket;
invokevirtual java.net.Socket.getSoTimeout:()I
i2l
putfield jdk.jfr.events.SocketReadEvent.timeout:J
33: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.commit:()V
34: aload 4
invokevirtual jdk.jfr.events.SocketReadEvent.reset:()V
end local 7 35: StackMap locals: jdk.jfr.internal.instrument.SocketInputStreamInstrumentor byte[] int int jdk.jfr.events.SocketReadEvent int
StackMap stack:
iload 5
ireturn
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 36 0 this Ljdk/jfr/internal/instrument/SocketInputStreamInstrumentor;
0 36 1 b [B
0 36 2 off I
0 36 3 length I
1 36 4 event Ljdk/jfr/events/SocketReadEvent;
4 36 5 bytesRead I
11 21 7 remote Ljava/net/InetAddress;
25 35 7 remote Ljava/net/InetAddress;
Exception table:
from to target type
4 7 7 any
Exceptions:
throws java.io.IOException
RuntimeVisibleAnnotations:
jdk.jfr.internal.instrument.JIInstrumentationMethod()
MethodParameters:
Name Flags
b
off
length
}
SourceFile: "SocketInputStreamInstrumentor.java"
RuntimeVisibleAnnotations:
jdk.jfr.internal.instrument.JIInstrumentationTarget(value = "java.net.Socket$SocketInputStream")