class sun.nio.ch.NativeSocketAddress
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.NativeSocketAddress
super_class: java.lang.Object
{
private static final jdk.internal.access.JavaNetInetAddressAccess JNINA;
descriptor: Ljdk/internal/access/JavaNetInetAddressAccess;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final jdk.internal.misc.Unsafe UNSAFE;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long ARRAY_BASE_OFFSET;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int AF_INET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int AF_INET6;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int SIZEOF_SOCKADDR4;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int SIZEOF_SOCKADDR6;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int SIZEOF_SOCKETADDRESS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int SIZEOF_FAMILY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_FAMILY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_SIN4_PORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_SIN4_ADDR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_SIN6_PORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_SIN6_ADDR;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_SIN6_SCOPE_ID;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int OFFSET_SIN6_FLOWINFO;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final long address;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic jdk.internal.access.SharedSecrets.getJavaNetInetAddressAccess:()Ljdk/internal/access/JavaNetInetAddressAccess;
putstatic sun.nio.ch.NativeSocketAddress.JNINA:Ljdk/internal/access/JavaNetInetAddressAccess;
1: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
2: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
ldc [B
invokevirtual jdk.internal.misc.Unsafe.arrayBaseOffset:(Ljava/lang/Class;)I
i2l
putstatic sun.nio.ch.NativeSocketAddress.ARRAY_BASE_OFFSET:J
3: invokestatic sun.nio.ch.NativeSocketAddress.AFINET:()I
putstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
4: invokestatic sun.nio.ch.NativeSocketAddress.AFINET6:()I
putstatic sun.nio.ch.NativeSocketAddress.AF_INET6:I
5: invokestatic sun.nio.ch.NativeSocketAddress.sizeofSockAddr4:()I
putstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKADDR4:I
6: invokestatic sun.nio.ch.NativeSocketAddress.sizeofSockAddr6:()I
putstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKADDR6:I
7: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKADDR4:I
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKADDR6:I
invokestatic java.lang.Math.max:(II)I
putstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
8: invokestatic sun.nio.ch.NativeSocketAddress.sizeofFamily:()I
putstatic sun.nio.ch.NativeSocketAddress.SIZEOF_FAMILY:I
9: invokestatic sun.nio.ch.NativeSocketAddress.offsetFamily:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_FAMILY:I
10: invokestatic sun.nio.ch.NativeSocketAddress.offsetSin4Port:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_PORT:I
11: invokestatic sun.nio.ch.NativeSocketAddress.offsetSin4Addr:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_ADDR:I
12: invokestatic sun.nio.ch.NativeSocketAddress.offsetSin6Port:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_PORT:I
13: invokestatic sun.nio.ch.NativeSocketAddress.offsetSin6Addr:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
14: invokestatic sun.nio.ch.NativeSocketAddress.offsetSin6ScopeId:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_SCOPE_ID:I
15: invokestatic sun.nio.ch.NativeSocketAddress.offsetSin6FlowInfo:()I
putstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_FLOWINFO:I
16: invokestatic sun.nio.ch.IOUtil.load:()V
17: return
LocalVariableTable:
Start End Slot Name Signature
long address();
descriptor: ()J
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/NativeSocketAddress;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
i2l
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
lstore 1
start local 1 2: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
lload 1
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
i2l
iconst_0
invokevirtual jdk.internal.misc.Unsafe.setMemory:(JJB)V
3: aload 0
lload 1
putfield sun.nio.ch.NativeSocketAddress.address:J
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/NativeSocketAddress;
2 5 1 base J
static sun.nio.ch.NativeSocketAddress[] allocate(int);
descriptor: (I)[Lsun/nio/ch/NativeSocketAddress;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: iload 0
anewarray sun.nio.ch.NativeSocketAddress
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 9
3: StackMap locals: sun.nio.ch.NativeSocketAddress[] int
StackMap stack:
aload 1
iload 2
new sun.nio.ch.NativeSocketAddress
dup
invokespecial sun.nio.ch.NativeSocketAddress.<init>:()V
aastore
4: goto 8
StackMap locals:
StackMap stack: java.lang.OutOfMemoryError
5: astore 3
start local 3 6: aload 1
invokestatic sun.nio.ch.NativeSocketAddress.freeAll:([Lsun/nio/ch/NativeSocketAddress;)V
7: aload 3
athrow
end local 3 8: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
iload 0
if_icmplt 3
end local 2 10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 count I
1 11 1 array [Lsun/nio/ch/NativeSocketAddress;
2 10 2 i I
6 8 3 e Ljava/lang/OutOfMemoryError;
Exception table:
from to target type
3 4 5 Class java.lang.OutOfMemoryError
MethodParameters:
Name Flags
count
static void freeAll(sun.nio.ch.NativeSocketAddress[]);
descriptor: ([Lsun/nio/ch/NativeSocketAddress;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
aaload
astore 2
start local 2 3: aload 2
ifnull 5
4: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 2
getfield sun.nio.ch.NativeSocketAddress.address:J
invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
end local 2 5: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
aload 0
arraylength
if_icmplt 2
end local 1 7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 array [Lsun/nio/ch/NativeSocketAddress;
1 7 1 i I
3 5 2 sa Lsun/nio/ch/NativeSocketAddress;
MethodParameters:
Name Flags
array
int encode(java.net.ProtocolFamily, java.net.InetSocketAddress);
descriptor: (Ljava/net/ProtocolFamily;Ljava/net/InetSocketAddress;)I
flags: (0x0000)
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic java.net.StandardProtocolFamily.INET:Ljava/net/StandardProtocolFamily;
if_acmpne 8
1: aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 3
start local 3 2: aload 3
instanceof java.net.Inet4Address
ifne 4
3: new java.nio.channels.UnsupportedAddressTypeException
dup
invokespecial java.nio.channels.UnsupportedAddressTypeException.<init>:()V
athrow
4: StackMap locals: java.net.InetAddress
StackMap stack:
aload 0
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
invokevirtual sun.nio.ch.NativeSocketAddress.putFamily:(I)V
5: aload 0
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
aload 3
invokevirtual sun.nio.ch.NativeSocketAddress.putAddress:(ILjava/net/InetAddress;)V
6: aload 0
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual sun.nio.ch.NativeSocketAddress.putPort:(II)V
7: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKADDR4:I
ireturn
end local 3 8: StackMap locals:
StackMap stack:
aload 0
getstatic sun.nio.ch.NativeSocketAddress.AF_INET6:I
invokevirtual sun.nio.ch.NativeSocketAddress.putFamily:(I)V
9: aload 0
getstatic sun.nio.ch.NativeSocketAddress.AF_INET6:I
aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual sun.nio.ch.NativeSocketAddress.putAddress:(ILjava/net/InetAddress;)V
10: aload 0
getstatic sun.nio.ch.NativeSocketAddress.AF_INET6:I
aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
invokevirtual sun.nio.ch.NativeSocketAddress.putPort:(II)V
11: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_FLOWINFO:I
i2l
ladd
iconst_0
invokevirtual jdk.internal.misc.Unsafe.putInt:(JI)V
12: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKADDR6:I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/NativeSocketAddress;
0 13 1 protocolFamily Ljava/net/ProtocolFamily;
0 13 2 isa Ljava/net/InetSocketAddress;
2 8 3 ia Ljava/net/InetAddress;
MethodParameters:
Name Flags
protocolFamily
isa
java.net.InetSocketAddress decode();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.NativeSocketAddress.family:()I
istore 1
start local 1 1: iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpeq 3
iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET6:I
if_icmpeq 3
2: new java.net.SocketException
dup
ldc "Socket family not recognized"
invokespecial java.net.SocketException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
new java.net.InetSocketAddress
dup
aload 0
iload 1
invokevirtual sun.nio.ch.NativeSocketAddress.address:(I)Ljava/net/InetAddress;
aload 0
iload 1
invokevirtual sun.nio.ch.NativeSocketAddress.port:(I)I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/NativeSocketAddress;
1 4 1 family I
Exceptions:
throws java.net.SocketException
private int mismatch(sun.nio.ch.NativeSocketAddress);
descriptor: (Lsun/nio/ch/NativeSocketAddress;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aconst_null
1: aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
2: aconst_null
3: aload 1
getfield sun.nio.ch.NativeSocketAddress.address:J
4: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
5: getstatic jdk.internal.util.ArraysSupport.LOG2_ARRAY_BYTE_INDEX_SCALE:I
6: invokestatic jdk.internal.util.ArraysSupport.vectorizedMismatch:(Ljava/lang/Object;JLjava/lang/Object;JII)I
istore 2
start local 2 7: iload 2
iflt 9
8: iload 2
ireturn
9: StackMap locals: int
StackMap stack:
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
iload 2
iconst_m1
ixor
isub
istore 2
10: goto 14
11: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
iload 2
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 1
getfield sun.nio.ch.NativeSocketAddress.address:J
iload 2
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
if_icmpeq 13
12: iload 2
ireturn
13: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
14: iload 2
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
if_icmplt 11
15: iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/nio/ch/NativeSocketAddress;
0 16 1 other Lsun/nio/ch/NativeSocketAddress;
7 16 2 i I
MethodParameters:
Name Flags
other
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof sun.nio.ch.NativeSocketAddress
ifeq 3
1: aload 0
aload 1
checkcast sun.nio.ch.NativeSocketAddress
invokevirtual sun.nio.ch.NativeSocketAddress.mismatch:(Lsun/nio/ch/NativeSocketAddress;)I
ifge 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/NativeSocketAddress;
0 4 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: int int
StackMap stack:
bipush 31
iload 1
imul
getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
iload 2
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
iadd
istore 1
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_SOCKETADDRESS:I
if_icmplt 3
end local 2 6: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/NativeSocketAddress;
1 7 1 h I
2 6 2 offset I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.NativeSocketAddress.family:()I
istore 1
start local 1 1: iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpeq 2
iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET6:I
if_icmpne 7
2: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpne 3
ldc "AF_INET"
goto 4
StackMap locals: sun.nio.ch.NativeSocketAddress int
StackMap stack: new 2 new 2
3: ldc "AF_INET6"
StackMap locals: sun.nio.ch.NativeSocketAddress int
StackMap stack: new 2 new 2 java.lang.String
4: invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
5: ldc ", address="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
iload 1
invokevirtual sun.nio.ch.NativeSocketAddress.address:(I)Ljava/net/InetAddress;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", port="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
iload 1
invokevirtual sun.nio.ch.NativeSocketAddress.port:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
7: StackMap locals:
StackMap stack:
ldc "<unknown>"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/NativeSocketAddress;
1 8 1 family I
private int family();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_FAMILY:I
iconst_1
if_icmpne 2
1: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_FAMILY:I
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
ireturn
2: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_FAMILY:I
iconst_2
if_icmpne 4
3: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_FAMILY:I
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getShort:(J)S
ireturn
4: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/NativeSocketAddress;
private void putFamily(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_FAMILY:I
iconst_1
if_icmpne 3
1: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_FAMILY:I
i2l
ladd
iload 1
i2b
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
2: goto 7
StackMap locals:
StackMap stack:
3: getstatic sun.nio.ch.NativeSocketAddress.SIZEOF_FAMILY:I
iconst_2
if_icmpne 6
4: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_FAMILY:I
i2l
ladd
iload 1
i2s
invokevirtual jdk.internal.misc.Unsafe.putShort:(JS)V
5: goto 7
6: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
invokespecial java.lang.InternalError.<init>:()V
athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/ch/NativeSocketAddress;
0 8 1 family I
MethodParameters:
Name Flags
family
private int port(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpne 4
1: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_PORT:I
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
istore 2
start local 2 2: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_PORT:I
i2l
ladd
lconst_1
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
istore 3
start local 3 3: goto 6
end local 3 end local 2 4: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_PORT:I
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
istore 2
start local 2 5: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_PORT:I
i2l
ladd
lconst_1
ladd
invokevirtual jdk.internal.misc.Unsafe.getByte:(J)B
istore 3
start local 3 6: StackMap locals: int int
StackMap stack:
iload 2
invokestatic java.lang.Byte.toUnsignedInt:(B)I
bipush 8
ishl
iload 3
invokestatic java.lang.Byte.toUnsignedInt:(B)I
iadd
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/NativeSocketAddress;
0 7 1 family I
2 4 2 b1 B
5 7 2 b1 B
3 4 3 b2 B
6 7 3 b2 B
MethodParameters:
Name Flags
family
private void putPort(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 2
bipush 8
ishr
sipush 255
iand
i2b
istore 3
start local 3 1: iload 2
iconst_0
ishr
sipush 255
iand
i2b
istore 4
start local 4 2: iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpne 6
3: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_PORT:I
i2l
ladd
iload 3
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
4: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_PORT:I
i2l
ladd
lconst_1
ladd
iload 4
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
5: goto 8
6: StackMap locals: int int
StackMap stack:
getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_PORT:I
i2l
ladd
iload 3
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
7: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_PORT:I
i2l
ladd
lconst_1
ladd
iload 4
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
8: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/NativeSocketAddress;
0 9 1 family I
0 9 2 port I
1 9 3 b1 B
2 9 4 b2 B
MethodParameters:
Name Flags
family
port
private java.net.InetAddress address(int);
descriptor: (I)Ljava/net/InetAddress;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=7, args_size=2
start local 0 start local 1 0: iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpne 5
1: iconst_4
istore 2
start local 2 2: getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_ADDR:I
istore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 8
end local 4 end local 3 end local 2 5: StackMap locals:
StackMap stack:
bipush 16
istore 2
start local 2 6: getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
istore 3
start local 3 7: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_SCOPE_ID:I
i2l
ladd
invokevirtual jdk.internal.misc.Unsafe.getInt:(J)I
istore 4
start local 4 8: StackMap locals: int int int
StackMap stack:
iload 2
newarray 8
astore 5
start local 5 9: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aconst_null
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
iload 3
i2l
ladd
aload 5
getstatic sun.nio.ch.NativeSocketAddress.ARRAY_BASE_OFFSET:J
iload 2
i2l
invokevirtual jdk.internal.misc.Unsafe.copyMemory:(Ljava/lang/Object;JLjava/lang/Object;JJ)V
10: iload 4
ifne 13
11: aload 5
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
12: areturn
13: StackMap locals: byte[]
StackMap stack:
aconst_null
aload 5
iload 4
invokestatic java.net.Inet6Address.getByAddress:(Ljava/lang/String;[BI)Ljava/net/Inet6Address;
14: areturn
15: StackMap locals:
StackMap stack: java.net.UnknownHostException
astore 6
start local 6 16: new java.lang.InternalError
dup
aload 6
invokespecial java.lang.InternalError.<init>:(Ljava/lang/Throwable;)V
athrow
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 17 0 this Lsun/nio/ch/NativeSocketAddress;
0 17 1 family I
2 5 2 len I
6 17 2 len I
3 5 3 offset I
7 17 3 offset I
4 5 4 scope_id I
8 17 4 scope_id I
9 17 5 bytes [B
16 17 6 e Ljava/net/UnknownHostException;
Exception table:
from to target type
10 12 15 Class java.net.UnknownHostException
13 14 15 Class java.net.UnknownHostException
MethodParameters:
Name Flags
family
private void putAddress(int, java.net.InetAddress);
descriptor: (ILjava/net/InetAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iload 1
getstatic sun.nio.ch.NativeSocketAddress.AF_INET:I
if_icmpne 3
1: aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN4_ADDR:I
i2l
ladd
aload 2
checkcast java.net.Inet4Address
invokestatic sun.nio.ch.NativeSocketAddress.putAddress:(JLjava/net/Inet4Address;)V
2: goto 14
3: StackMap locals:
StackMap stack:
aload 2
instanceof java.net.Inet4Address
ifeq 10
4: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
i2l
ladd
ldc 10
iconst_0
invokevirtual jdk.internal.misc.Unsafe.setMemory:(JJB)V
5: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
i2l
ladd
ldc 10
ladd
iconst_m1
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
6: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
i2l
ladd
ldc 11
ladd
iconst_m1
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
7: aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
i2l
ladd
ldc 12
ladd
aload 2
checkcast java.net.Inet4Address
invokestatic sun.nio.ch.NativeSocketAddress.putAddress:(JLjava/net/Inet4Address;)V
8: iconst_0
istore 3
start local 3 9: goto 13
end local 3 10: StackMap locals:
StackMap stack:
aload 2
checkcast java.net.Inet6Address
astore 4
start local 4 11: aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_ADDR:I
i2l
ladd
aload 4
invokestatic sun.nio.ch.NativeSocketAddress.putAddress:(JLjava/net/Inet6Address;)V
12: aload 4
invokevirtual java.net.Inet6Address.getScopeId:()I
istore 3
end local 4 start local 3 13: StackMap locals: int
StackMap stack:
getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.NativeSocketAddress.address:J
getstatic sun.nio.ch.NativeSocketAddress.OFFSET_SIN6_SCOPE_ID:I
i2l
ladd
iload 3
invokevirtual jdk.internal.misc.Unsafe.putInt:(JI)V
end local 3 14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/ch/NativeSocketAddress;
0 15 1 family I
0 15 2 ia Ljava/net/InetAddress;
9 10 3 scope_id I
13 14 3 scope_id I
11 13 4 inet6Address Ljava/net/Inet6Address;
MethodParameters:
Name Flags
family
ia
private static void putAddress(long, java.net.Inet4Address);
descriptor: (JLjava/net/Inet4Address;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 2 0: getstatic sun.nio.ch.NativeSocketAddress.JNINA:Ljdk/internal/access/JavaNetInetAddressAccess;
aload 2
invokeinterface jdk.internal.access.JavaNetInetAddressAccess.addressValue:(Ljava/net/Inet4Address;)I
istore 3
start local 3 1: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
lload 0
lconst_0
ladd
iload 3
bipush 24
iushr
sipush 255
iand
i2b
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
2: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
lload 0
lconst_1
ladd
iload 3
bipush 16
iushr
sipush 255
iand
i2b
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
3: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
lload 0
ldc 2
ladd
iload 3
bipush 8
iushr
sipush 255
iand
i2b
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
4: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
lload 0
ldc 3
ladd
iload 3
sipush 255
iand
i2b
invokevirtual jdk.internal.misc.Unsafe.putByte:(JB)V
5: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 address J
0 6 2 ia Ljava/net/Inet4Address;
1 6 3 ipAddress I
MethodParameters:
Name Flags
address
ia
private static void putAddress(long, java.net.Inet6Address);
descriptor: (JLjava/net/Inet6Address;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=4, args_size=2
start local 0 start local 2 0: getstatic sun.nio.ch.NativeSocketAddress.JNINA:Ljdk/internal/access/JavaNetInetAddressAccess;
aload 2
invokeinterface jdk.internal.access.JavaNetInetAddressAccess.addressBytes:(Ljava/net/Inet6Address;)[B
astore 3
start local 3 1: getstatic sun.nio.ch.NativeSocketAddress.UNSAFE:Ljdk/internal/misc/Unsafe;
aload 3
getstatic sun.nio.ch.NativeSocketAddress.ARRAY_BASE_OFFSET:J
aconst_null
lload 0
ldc 16
invokevirtual jdk.internal.misc.Unsafe.copyMemory:(Ljava/lang/Object;JLjava/lang/Object;JJ)V
2: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 address J
0 3 2 ia Ljava/net/Inet6Address;
1 3 3 bytes [B
MethodParameters:
Name Flags
address
ia
private static native int AFINET();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int AFINET6();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int sizeofSockAddr4();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int sizeofSockAddr6();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int sizeofFamily();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetFamily();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetSin4Port();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetSin4Addr();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetSin6Port();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetSin6Addr();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetSin6ScopeId();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int offsetSin6FlowInfo();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
}
SourceFile: "NativeSocketAddress.java"