final class io.netty.resolver.dns.DnsQueryContextManager
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.resolver.dns.DnsQueryContextManager
super_class: java.lang.Object
{
final java.util.Map<java.net.InetSocketAddress, io.netty.util.collection.IntObjectMap<io.netty.resolver.dns.DnsQueryContext>> map;
descriptor: Ljava/util/Map;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Map<Ljava/net/InetSocketAddress;Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;>;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/resolver/dns/DnsQueryContextManager;
int add(io.netty.resolver.dns.DnsQueryContext);
descriptor: (Lio/netty/resolver/dns/DnsQueryContext;)I
flags: (0x0000)
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.netty.resolver.dns.DnsQueryContext.nameServerAddr:()Ljava/net/InetSocketAddress;
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.getOrCreateContextMap:(Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap;
astore 2
start local 2 1: invokestatic io.netty.util.internal.PlatformDependent.threadLocalRandom:()Ljava/util/Random;
ldc 65535
invokevirtual java.util.Random.nextInt:(I)I
iconst_1
iadd
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: aload 2
dup
astore 5
monitorenter
4: StackMap locals: io.netty.resolver.dns.DnsQueryContextManager io.netty.resolver.dns.DnsQueryContext io.netty.util.collection.IntObjectMap int int io.netty.util.collection.IntObjectMap
StackMap stack:
aload 2
iload 3
invokeinterface io.netty.util.collection.IntObjectMap.containsKey:(I)Z
ifne 8
5: aload 2
iload 3
aload 1
invokeinterface io.netty.util.collection.IntObjectMap.put:(ILjava/lang/Object;)Ljava/lang/Object;
pop
6: iload 3
aload 5
monitorexit
7: ireturn
8: StackMap locals:
StackMap stack:
iload 3
iconst_1
iadd
ldc 65535
iand
istore 3
9: iinc 4 1
iload 4
ldc 131070
if_icmplt 4
10: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "query ID space exhausted: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual io.netty.resolver.dns.DnsQueryContext.question:()Lio/netty/handler/codec/dns/DnsQuestion;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack: java.lang.Throwable
aload 5
monitorexit
12: athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/resolver/dns/DnsQueryContextManager;
0 13 1 qCtx Lio/netty/resolver/dns/DnsQueryContext;
1 13 2 contexts Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
2 13 3 id I
3 13 4 tries I
Exception table:
from to target type
4 7 11 any
8 12 11 any
MethodParameters:
Name Flags
qCtx
io.netty.resolver.dns.DnsQueryContext get(java.net.InetSocketAddress, int);
descriptor: (Ljava/net/InetSocketAddress;I)Lio/netty/resolver/dns/DnsQueryContext;
flags: (0x0000)
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.getContextMap:(Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap;
astore 3
start local 3 1: aload 3
ifnull 8
2: aload 3
dup
astore 5
monitorenter
3: aload 3
iload 2
invokeinterface io.netty.util.collection.IntObjectMap.get:(I)Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsQueryContext
astore 4
start local 4 4: aload 5
monitorexit
5: goto 9
end local 4 StackMap locals: io.netty.resolver.dns.DnsQueryContextManager java.net.InetSocketAddress int io.netty.util.collection.IntObjectMap top io.netty.util.collection.IntObjectMap
StackMap stack: java.lang.Throwable
6: aload 5
monitorexit
7: athrow
8: StackMap locals: io.netty.resolver.dns.DnsQueryContextManager java.net.InetSocketAddress int io.netty.util.collection.IntObjectMap
StackMap stack:
aconst_null
astore 4
start local 4 9: StackMap locals: io.netty.resolver.dns.DnsQueryContext
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/netty/resolver/dns/DnsQueryContextManager;
0 10 1 nameServerAddr Ljava/net/InetSocketAddress;
0 10 2 id I
1 10 3 contexts Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
4 6 4 qCtx Lio/netty/resolver/dns/DnsQueryContext;
9 10 4 qCtx Lio/netty/resolver/dns/DnsQueryContext;
Exception table:
from to target type
3 5 6 any
6 7 6 any
MethodParameters:
Name Flags
nameServerAddr
id
io.netty.resolver.dns.DnsQueryContext remove(java.net.InetSocketAddress, int);
descriptor: (Ljava/net/InetSocketAddress;I)Lio/netty/resolver/dns/DnsQueryContext;
flags: (0x0000)
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual io.netty.resolver.dns.DnsQueryContextManager.getContextMap:(Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: io.netty.util.collection.IntObjectMap
StackMap stack:
aload 3
dup
astore 4
monitorenter
4: aload 3
iload 2
invokeinterface io.netty.util.collection.IntObjectMap.remove:(I)Ljava/lang/Object;
checkcast io.netty.resolver.dns.DnsQueryContext
aload 4
monitorexit
5: areturn
6: StackMap locals: io.netty.resolver.dns.DnsQueryContextManager java.net.InetSocketAddress int io.netty.util.collection.IntObjectMap io.netty.util.collection.IntObjectMap
StackMap stack: java.lang.Throwable
aload 4
monitorexit
7: athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/resolver/dns/DnsQueryContextManager;
0 8 1 nameServerAddr Ljava/net/InetSocketAddress;
0 8 2 id I
1 8 3 contexts Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
Exception table:
from to target type
4 5 6 any
6 7 6 any
MethodParameters:
Name Flags
nameServerAddr
id
private io.netty.util.collection.IntObjectMap<io.netty.resolver.dns.DnsQueryContext> getContextMap(java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
dup
astore 2
monitorenter
1: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.util.collection.IntObjectMap
aload 2
monitorexit
2: areturn
3: StackMap locals: io.netty.resolver.dns.DnsQueryContextManager java.net.InetSocketAddress java.util.Map
StackMap stack: java.lang.Throwable
aload 2
monitorexit
4: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/resolver/dns/DnsQueryContextManager;
0 5 1 nameServerAddr Ljava/net/InetSocketAddress;
Exception table:
from to target type
1 2 3 any
3 4 3 any
Signature: (Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
MethodParameters:
Name Flags
nameServerAddr
private io.netty.util.collection.IntObjectMap<io.netty.resolver.dns.DnsQueryContext> getOrCreateContextMap(java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
dup
astore 2
monitorenter
1: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.netty.util.collection.IntObjectMap
astore 3
start local 3 2: aload 3
ifnull 5
3: aload 3
aload 2
monitorexit
4: areturn
5: StackMap locals: java.util.Map io.netty.util.collection.IntObjectMap
StackMap stack:
new io.netty.util.collection.IntObjectHashMap
dup
invokespecial io.netty.util.collection.IntObjectHashMap.<init>:()V
astore 4
start local 4 6: aload 1
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
astore 5
start local 5 7: aload 1
invokevirtual java.net.InetSocketAddress.getPort:()I
istore 6
start local 6 8: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
aload 1
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 5
instanceof java.net.Inet4Address
ifeq 16
10: aload 5
checkcast java.net.Inet4Address
astore 7
start local 7 11: aload 7
invokevirtual java.net.Inet4Address.isLoopbackAddress:()Z
ifeq 14
12: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
new java.net.InetSocketAddress
dup
getstatic io.netty.util.NetUtil.LOCALHOST6:Ljava/net/Inet6Address;
iload 6
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: goto 23
14: StackMap locals: io.netty.resolver.dns.DnsQueryContextManager java.net.InetSocketAddress java.util.Map io.netty.util.collection.IntObjectMap io.netty.util.collection.IntObjectMap java.net.InetAddress int java.net.Inet4Address
StackMap stack:
aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
new java.net.InetSocketAddress
dup
aload 7
invokestatic io.netty.resolver.dns.DnsQueryContextManager.toCompactAddress:(Ljava/net/Inet4Address;)Ljava/net/Inet6Address;
iload 6
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 15: goto 23
StackMap locals:
StackMap stack:
16: aload 5
instanceof java.net.Inet6Address
ifeq 23
17: aload 5
checkcast java.net.Inet6Address
astore 7
start local 7 18: aload 7
invokevirtual java.net.Inet6Address.isLoopbackAddress:()Z
ifeq 21
19: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
new java.net.InetSocketAddress
dup
getstatic io.netty.util.NetUtil.LOCALHOST4:Ljava/net/Inet4Address;
iload 6
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: goto 23
StackMap locals: java.net.Inet6Address
StackMap stack:
21: aload 7
invokevirtual java.net.Inet6Address.isIPv4CompatibleAddress:()Z
ifeq 23
22: aload 0
getfield io.netty.resolver.dns.DnsQueryContextManager.map:Ljava/util/Map;
new java.net.InetSocketAddress
dup
aload 7
invokestatic io.netty.resolver.dns.DnsQueryContextManager.toIPv4Address:(Ljava/net/Inet6Address;)Ljava/net/Inet4Address;
iload 6
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 23: StackMap locals:
StackMap stack:
aload 4
aload 2
monitorexit
24: areturn
end local 6 end local 5 end local 4 end local 3 25: StackMap locals: io.netty.resolver.dns.DnsQueryContextManager java.net.InetSocketAddress java.util.Map
StackMap stack: java.lang.Throwable
aload 2
monitorexit
26: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lio/netty/resolver/dns/DnsQueryContextManager;
0 27 1 nameServerAddr Ljava/net/InetSocketAddress;
2 25 3 contexts Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
6 25 4 newContexts Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
7 25 5 a Ljava/net/InetAddress;
8 25 6 port I
11 15 7 a4 Ljava/net/Inet4Address;
18 23 7 a6 Ljava/net/Inet6Address;
Exception table:
from to target type
1 4 25 any
5 24 25 any
25 26 25 any
Signature: (Ljava/net/InetSocketAddress;)Lio/netty/util/collection/IntObjectMap<Lio/netty/resolver/dns/DnsQueryContext;>;
MethodParameters:
Name Flags
nameServerAddr
private static java.net.Inet6Address toCompactAddress(java.net.Inet4Address);
descriptor: (Ljava/net/Inet4Address;)Ljava/net/Inet6Address;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.net.Inet4Address.getAddress:()[B
astore 1
start local 1 1: bipush 16
newarray 8
dup
bipush 12
aload 1
iconst_0
baload
bastore
dup
bipush 13
aload 1
iconst_1
baload
bastore
dup
bipush 14
aload 1
iconst_2
baload
bastore
dup
bipush 15
aload 1
iconst_3
baload
bastore
astore 2
start local 2 2: aload 2
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
checkcast java.net.Inet6Address
3: areturn
4: StackMap locals: java.net.Inet4Address byte[] byte[]
StackMap stack: java.net.UnknownHostException
astore 3
start local 3 5: new java.lang.Error
dup
aload 3
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 a4 Ljava/net/Inet4Address;
1 6 1 b4 [B
2 6 2 b6 [B
5 6 3 e Ljava/net/UnknownHostException;
Exception table:
from to target type
2 3 4 Class java.net.UnknownHostException
MethodParameters:
Name Flags
a4
private static java.net.Inet4Address toIPv4Address(java.net.Inet6Address);
descriptor: (Ljava/net/Inet6Address;)Ljava/net/Inet4Address;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.net.Inet6Address.getAddress:()[B
astore 1
start local 1 1: iconst_4
newarray 8
dup
iconst_0
aload 1
bipush 12
baload
bastore
dup
iconst_1
aload 1
bipush 13
baload
bastore
dup
iconst_2
aload 1
bipush 14
baload
bastore
dup
iconst_3
aload 1
bipush 15
baload
bastore
astore 2
start local 2 2: aload 2
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
checkcast java.net.Inet4Address
3: areturn
4: StackMap locals: java.net.Inet6Address byte[] byte[]
StackMap stack: java.net.UnknownHostException
astore 3
start local 3 5: new java.lang.Error
dup
aload 3
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 a6 Ljava/net/Inet6Address;
1 6 1 b6 [B
2 6 2 b4 [B
5 6 3 e Ljava/net/UnknownHostException;
Exception table:
from to target type
2 3 4 Class java.net.UnknownHostException
MethodParameters:
Name Flags
a6
}
SourceFile: "DnsQueryContextManager.java"