public final class io.netty.internal.tcnative.Library
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.internal.tcnative.Library
super_class: java.lang.Object
{
private static final java.lang.String[] NAMES;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String PROVIDED;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "provided"
private static io.netty.internal.tcnative.Library _instance;
descriptor: Lio/netty/internal/tcnative/Library;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_2
anewarray java.lang.String
dup
iconst_0
1: ldc "netty_tcnative"
aastore
dup
iconst_1
2: ldc "libnetty_tcnative"
aastore
3: putstatic io.netty.internal.tcnative.Library.NAMES:[Ljava/lang/String;
4: aconst_null
putstatic io.netty.internal.tcnative.Library._instance:Lio/netty/internal/tcnative/Library;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iconst_0
istore 1
start local 1 2: ldc "java.library.path"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 4: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 5: iconst_0
istore 5
start local 5 6: goto 29
7: StackMap locals: io.netty.internal.tcnative.Library int java.lang.String java.lang.String[] java.lang.StringBuilder int
StackMap stack:
getstatic io.netty.internal.tcnative.Library.NAMES:[Ljava/lang/String;
iload 5
aaload
invokestatic io.netty.internal.tcnative.Library.loadLibrary:(Ljava/lang/String;)V
8: iconst_1
istore 1
9: goto 26
StackMap locals:
StackMap stack: java.lang.ThreadDeath
10: astore 6
start local 6 11: aload 6
athrow
end local 6 12: StackMap locals:
StackMap stack: java.lang.VirtualMachineError
astore 6
start local 6 13: aload 6
athrow
end local 6 14: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
start local 6 15: getstatic io.netty.internal.tcnative.Library.NAMES:[Ljava/lang/String;
iload 5
aaload
invokestatic java.lang.System.mapLibraryName:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 16: iconst_0
istore 8
start local 8 17: goto 22
18: StackMap locals: java.lang.Throwable java.lang.String int
StackMap stack:
new java.io.File
dup
aload 3
iload 8
aaload
aload 7
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 9
start local 9 19: aload 9
invokevirtual java.io.File.exists:()Z
ifeq 21
20: new java.lang.RuntimeException
dup
aload 6
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 9 21: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
22: iload 8
aload 3
arraylength
if_icmplt 18
end local 8 23: iload 5
ifle 25
24: aload 4
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
25: StackMap locals:
StackMap stack:
aload 4
aload 6
invokevirtual java.lang.Throwable.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 end local 6 26: StackMap locals:
StackMap stack:
iload 1
ifeq 28
27: goto 30
28: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
29: iload 5
getstatic io.netty.internal.tcnative.Library.NAMES:[Ljava/lang/String;
arraylength
if_icmplt 7
end local 5 30: StackMap locals:
StackMap stack:
iload 1
ifne 32
31: new java.lang.UnsatisfiedLinkError
dup
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
32: 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 33 0 this Lio/netty/internal/tcnative/Library;
2 33 1 loaded Z
3 33 2 path Ljava/lang/String;
4 33 3 paths [Ljava/lang/String;
5 33 4 err Ljava/lang/StringBuilder;
6 30 5 i I
11 12 6 t Ljava/lang/ThreadDeath;
13 14 6 t Ljava/lang/VirtualMachineError;
15 26 6 t Ljava/lang/Throwable;
16 26 7 name Ljava/lang/String;
17 23 8 j I
19 21 9 fd Ljava/io/File;
Exception table:
from to target type
7 9 10 Class java.lang.ThreadDeath
7 9 12 Class java.lang.VirtualMachineError
7 9 14 Class java.lang.Throwable
Exceptions:
throws java.lang.Exception
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: ldc "provided"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
2: aload 1
invokestatic io.netty.internal.tcnative.Library.loadLibrary:(Ljava/lang/String;)V
3: StackMap locals: io.netty.internal.tcnative.Library java.lang.String
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/internal/tcnative/Library;
0 4 1 libraryName Ljava/lang/String;
MethodParameters:
Name Flags
libraryName
private static void loadLibrary(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokestatic io.netty.internal.tcnative.Library.calculatePackagePrefix:()Ljava/lang/String;
bipush 46
bipush 95
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.System.loadLibrary:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 libraryName Ljava/lang/String;
MethodParameters:
Name Flags
libraryName
private static java.lang.String calculatePackagePrefix();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=0
0: ldc Lio/netty/internal/tcnative/Library;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 0
start local 0 1: ldc "io!netty!internal!tcnative!Library"
bipush 33
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 1
start local 1 2: aload 0
aload 1
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 7
3: new java.lang.UnsatisfiedLinkError
dup
4: ldc "Could not find prefix added to %s to get %s. When shading, only adding a package prefix is supported"
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: aload 1
aastore
dup
iconst_1
aload 0
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 0
iconst_0
aload 0
invokevirtual java.lang.String.length:()I
aload 1
invokevirtual java.lang.String.length:()I
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 8 0 maybeShaded Ljava/lang/String;
2 8 1 expected Ljava/lang/String;
private static native boolean initialize0();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native boolean aprHasThreads();
descriptor: ()Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native int aprMajorVersion();
descriptor: ()I
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private static native java.lang.String aprVersionString();
descriptor: ()Ljava/lang/String;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
public static boolean initialize();
descriptor: ()Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "provided"
aconst_null
invokestatic io.netty.internal.tcnative.Library.initialize:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
public static boolean initialize(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.netty.internal.tcnative.Library._instance:Lio/netty/internal/tcnative/Library;
ifnonnull 10
1: aload 0
ifnonnull 2
new io.netty.internal.tcnative.Library
dup
invokespecial io.netty.internal.tcnative.Library.<init>:()V
goto 3
StackMap locals:
StackMap stack:
2: new io.netty.internal.tcnative.Library
dup
aload 0
invokespecial io.netty.internal.tcnative.Library.<init>:(Ljava/lang/String;)V
StackMap locals:
StackMap stack: io.netty.internal.tcnative.Library
3: putstatic io.netty.internal.tcnative.Library._instance:Lio/netty/internal/tcnative/Library;
4: invokestatic io.netty.internal.tcnative.Library.aprMajorVersion:()I
iconst_1
if_icmpge 8
5: new java.lang.UnsatisfiedLinkError
dup
new java.lang.StringBuilder
dup
ldc "Unsupported APR Version ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: invokestatic io.netty.internal.tcnative.Library.aprVersionString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
invokestatic io.netty.internal.tcnative.Library.aprHasThreads:()Z
ifne 10
9: new java.lang.UnsatisfiedLinkError
dup
ldc "Missing APR_HAS_THREADS"
invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
invokestatic io.netty.internal.tcnative.Library.initialize0:()Z
ifeq 11
aload 1
invokestatic io.netty.internal.tcnative.SSL.initialize:(Ljava/lang/String;)I
ifne 11
iconst_1
ireturn
StackMap locals:
StackMap stack:
11: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 libraryName Ljava/lang/String;
0 12 1 engine Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
libraryName
engine
}
SourceFile: "Library.java"