class io.netty.util.NetUtil$1 implements java.security.PrivilegedAction<java.lang.Integer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.netty.util.NetUtil$1
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/NetUtil$1;
public java.lang.Integer run();
descriptor: ()Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: invokestatic io.netty.util.internal.PlatformDependent.isWindows:()Z
ifeq 1
sipush 200
goto 2
StackMap locals:
StackMap stack:
1: sipush 128
StackMap locals:
StackMap stack: int
2: istore 1
start local 1 3: new java.io.File
dup
ldc "/proc/sys/net/core/somaxconn"
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 4: aconst_null
astore 3
start local 3 5: aload 2
invokevirtual java.io.File.exists:()Z
ifeq 11
6: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 2
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 3
7: aload 3
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 1
8: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
invokeinterface io.netty.util.internal.logging.InternalLogger.isDebugEnabled:()Z
ifeq 37
9: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "{}: {}"
aload 2
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
10: goto 37
11: StackMap locals: int java.io.File java.io.BufferedReader
StackMap stack:
aconst_null
astore 4
start local 4 12: ldc "io.netty.net.somaxconn.trySysctl"
iconst_0
invokestatic io.netty.util.internal.SystemPropertyUtil.getBoolean:(Ljava/lang/String;Z)Z
ifeq 20
13: ldc "kern.ipc.somaxconn"
invokestatic io.netty.util.NetUtil.sysctlGetInt:(Ljava/lang/String;)Ljava/lang/Integer;
astore 4
14: aload 4
ifnonnull 19
15: ldc "kern.ipc.soacceptqueue"
invokestatic io.netty.util.NetUtil.sysctlGetInt:(Ljava/lang/String;)Ljava/lang/Integer;
astore 4
16: aload 4
ifnull 20
17: aload 4
invokevirtual java.lang.Integer.intValue:()I
istore 1
18: goto 20
19: StackMap locals: java.lang.Integer
StackMap stack:
aload 4
invokevirtual java.lang.Integer.intValue:()I
istore 1
20: StackMap locals:
StackMap stack:
aload 4
ifnonnull 37
21: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to get SOMAXCONN from sysctl and file {}. Default: {}"
aload 2
22: iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
23: invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 24: goto 37
StackMap locals: io.netty.util.NetUtil$1 int java.io.File java.io.BufferedReader
StackMap stack: java.lang.Exception
25: astore 4
start local 4 26: getstatic io.netty.util.NetUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to get SOMAXCONN from sysctl and file {}. Default: {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 4
aastore
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 4 27: aload 3
ifnull 41
28: aload 3
invokevirtual java.io.BufferedReader.close:()V
29: goto 41
StackMap locals:
StackMap stack: java.lang.Exception
30: pop
goto 41
31: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
32: aload 3
ifnull 36
33: aload 3
invokevirtual java.io.BufferedReader.close:()V
34: goto 36
StackMap locals: io.netty.util.NetUtil$1 int java.io.File java.io.BufferedReader top java.lang.Throwable
StackMap stack: java.lang.Exception
35: pop
36: StackMap locals:
StackMap stack:
aload 5
athrow
37: StackMap locals: io.netty.util.NetUtil$1 int java.io.File java.io.BufferedReader
StackMap stack:
aload 3
ifnull 41
38: aload 3
invokevirtual java.io.BufferedReader.close:()V
39: goto 41
StackMap locals:
StackMap stack: java.lang.Exception
40: pop
41: StackMap locals:
StackMap stack:
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lio/netty/util/NetUtil$1;
3 42 1 somaxconn I
4 42 2 file Ljava/io/File;
5 42 3 in Ljava/io/BufferedReader;
12 24 4 tmp Ljava/lang/Integer;
26 27 4 e Ljava/lang/Exception;
Exception table:
from to target type
5 24 25 Class java.lang.Exception
28 29 30 Class java.lang.Exception
5 27 31 any
33 34 35 Class java.lang.Exception
38 39 40 Class java.lang.Exception
public java.lang.Object run();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.netty.util.NetUtil$1.run:()Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/security/PrivilegedAction<Ljava/lang/Integer;>;
SourceFile: "NetUtil.java"
EnclosingMethod: io.netty.util.NetUtil
NestHost: io.netty.util.NetUtil
InnerClasses:
io.netty.util.NetUtil$1