public final class jdk.internal.loader.NativeLibraries
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.loader.NativeLibraries
super_class: java.lang.Object
{
private final java.util.Map<java.lang.String, jdk.internal.loader.NativeLibraries$NativeLibraryImpl> libraries;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;>;
private final java.lang.ClassLoader loader;
descriptor: Ljava/lang/ClassLoader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Class<?> caller;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private final boolean searchJavaLibraryPath;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean isJNI;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.Set<java.lang.String> loadedLibraryNames;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Deque<jdk.internal.loader.NativeLibraries$NativeLibraryImpl> nativeLibraryContext;
descriptor: Ljava/util/Deque;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Deque<Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Ljdk/internal/loader/NativeLibraries;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.loader.NativeLibraries.$assertionsDisabled:Z
3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
4: new java.util.ArrayDeque
dup
bipush 8
invokespecial java.util.ArrayDeque.<init>:(I)V
putstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
return
LocalVariableTable:
Start End Slot Name Signature
public static jdk.internal.loader.NativeLibraries jniNativeLibraries(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)Ljdk/internal/loader/NativeLibraries;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.internal.loader.NativeLibraries
dup
aload 0
invokespecial jdk.internal.loader.NativeLibraries.<init>:(Ljava/lang/ClassLoader;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 loader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
loader
public static jdk.internal.loader.NativeLibraries rawNativeLibraries(java.lang.Class<?>, boolean);
descriptor: (Ljava/lang/Class;Z)Ljdk/internal/loader/NativeLibraries;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new jdk.internal.loader.NativeLibraries
dup
aload 0
iload 1
invokespecial jdk.internal.loader.NativeLibraries.<init>:(Ljava/lang/Class;Z)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 trustedCaller Ljava/lang/Class<*>;
0 1 1 searchJavaLibraryPath Z
Signature: (Ljava/lang/Class<*>;Z)Ljdk/internal/loader/NativeLibraries;
MethodParameters:
Name Flags
trustedCaller
searchJavaLibraryPath
private void <init>(java.lang.ClassLoader);
descriptor: (Ljava/lang/ClassLoader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
2: aload 0
aload 1
putfield jdk.internal.loader.NativeLibraries.loader:Ljava/lang/ClassLoader;
3: aload 0
aload 1
ifnull 4
aconst_null
goto 5
StackMap locals: jdk.internal.loader.NativeLibraries java.lang.ClassLoader
StackMap stack: jdk.internal.loader.NativeLibraries
4: ldc Ljdk/internal/loader/NativeLibraries;
StackMap locals: jdk.internal.loader.NativeLibraries java.lang.ClassLoader
StackMap stack: jdk.internal.loader.NativeLibraries java.lang.Class
5: putfield jdk.internal.loader.NativeLibraries.caller:Ljava/lang/Class;
6: aload 0
aload 1
ifnull 7
iconst_1
goto 8
StackMap locals:
StackMap stack: jdk.internal.loader.NativeLibraries
7: iconst_0
StackMap locals: jdk.internal.loader.NativeLibraries java.lang.ClassLoader
StackMap stack: jdk.internal.loader.NativeLibraries int
8: putfield jdk.internal.loader.NativeLibraries.searchJavaLibraryPath:Z
9: aload 0
iconst_1
putfield jdk.internal.loader.NativeLibraries.isJNI:Z
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/loader/NativeLibraries;
0 11 1 loader Ljava/lang/ClassLoader;
MethodParameters:
Name Flags
loader
private void <init>(java.lang.Class<?>, );
descriptor: (Ljava/lang/Class;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
2: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokestatic jdk.internal.misc.VM.isSystemDomainLoader:(Ljava/lang/ClassLoader;)Z
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "must be JDK trusted class"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.Class int
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
putfield jdk.internal.loader.NativeLibraries.loader:Ljava/lang/ClassLoader;
6: aload 0
aload 1
putfield jdk.internal.loader.NativeLibraries.caller:Ljava/lang/Class;
7: aload 0
iload 2
putfield jdk.internal.loader.NativeLibraries.searchJavaLibraryPath:Z
8: aload 0
iconst_0
putfield jdk.internal.loader.NativeLibraries.isJNI:Z
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/loader/NativeLibraries;
0 10 1 caller Ljava/lang/Class<*>;
0 10 2 searchJavaLibraryPath Z
Signature: (Ljava/lang/Class<*>;Z)V
MethodParameters:
Name Flags
caller
searchJavaLibraryPath
public long find(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: jdk.internal.loader.NativeLibraries java.lang.String top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.loader.NativeLibrary
astore 2
start local 2 4: aload 2
aload 1
invokeinterface jdk.internal.loader.NativeLibrary.find:(Ljava/lang/String;)J
lstore 4
start local 4 5: lload 4
lconst_0
lcmp
ifeq 6
lload 4
lreturn
end local 4 end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: lconst_0
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/loader/NativeLibraries;
0 8 1 name Ljava/lang/String;
4 6 2 lib Ljdk/internal/loader/NativeLibrary;
5 6 4 entry J
MethodParameters:
Name Flags
name
public jdk.internal.loader.NativeLibrary loadLibrary(java.lang.Class<?>, java.io.File);
descriptor: (Ljava/lang/Class;Ljava/io/File;)Ljdk/internal/loader/NativeLibrary;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokestatic jdk.internal.loader.NativeLibraries.findBuiltinLib:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnull 2
iconst_1
goto 3
StackMap locals: java.lang.String
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 4
start local 4 4: iload 4
ifne 8
5: new jdk.internal.loader.NativeLibraries$1
dup
aload 0
aload 2
invokespecial jdk.internal.loader.NativeLibraries$1.<init>:(Ljdk/internal/loader/NativeLibraries;Ljava/io/File;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
6: aload 3
ifnonnull 8
7: aconst_null
areturn
8: StackMap locals: int
StackMap stack:
aload 0
aload 1
aload 3
iload 4
invokevirtual jdk.internal.loader.NativeLibraries.loadLibrary:(Ljava/lang/Class;Ljava/lang/String;Z)Ljdk/internal/loader/NativeLibrary;
areturn
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 Ljdk/internal/loader/NativeLibraries;
0 9 1 fromClass Ljava/lang/Class<*>;
0 9 2 file Ljava/io/File;
1 9 3 name Ljava/lang/String;
4 9 4 isBuiltin Z
Signature: (Ljava/lang/Class<*>;Ljava/io/File;)Ljdk/internal/loader/NativeLibrary;
MethodParameters:
Name Flags
fromClass
file
private jdk.internal.loader.NativeLibrary loadLibrary(java.lang.Class<?>, java.lang.String, boolean);
descriptor: (Ljava/lang/Class;Ljava/lang/String;Z)Ljdk/internal/loader/NativeLibrary;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
StackMap locals:
StackMap stack: java.lang.ClassLoader
2: astore 4
start local 4 3: aload 0
getfield jdk.internal.loader.NativeLibraries.loader:Ljava/lang/ClassLoader;
aload 4
if_acmpeq 5
4: new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not allowed to load library"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.ClassLoader
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
dup
astore 5
monitorenter
6: aload 0
getfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.loader.NativeLibrary
astore 6
start local 6 7: aload 6
ifnull 10
8: aload 6
aload 5
monitorexit
9: areturn
10: StackMap locals: java.util.Set jdk.internal.loader.NativeLibrary
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 14
11: new java.lang.UnsatisfiedLinkError
dup
new java.lang.StringBuilder
dup
ldc "Native Library "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc " already loaded in another classloader"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.iterator:()Ljava/util/Iterator;
astore 8
goto 23
StackMap locals: jdk.internal.loader.NativeLibraries java.lang.Class java.lang.String int java.lang.ClassLoader java.util.Set jdk.internal.loader.NativeLibrary top java.util.Iterator
StackMap stack:
15: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.internal.loader.NativeLibraries$NativeLibraryImpl
astore 7
start local 7 16: aload 2
aload 7
invokevirtual jdk.internal.loader.NativeLibraries$NativeLibraryImpl.name:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 23
17: aload 4
aload 7
getfield jdk.internal.loader.NativeLibraries$NativeLibraryImpl.fromClass:Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
if_acmpne 20
18: aload 7
aload 5
monitorexit
19: areturn
20: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.Class java.lang.String int java.lang.ClassLoader java.util.Set jdk.internal.loader.NativeLibrary jdk.internal.loader.NativeLibraries$NativeLibraryImpl java.util.Iterator
StackMap stack:
new java.lang.UnsatisfiedLinkError
dup
new java.lang.StringBuilder
dup
ldc "Native Library "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
21: aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is being loaded in another classloader"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
22: invokespecial java.lang.UnsatisfiedLinkError.<init>:(Ljava/lang/String;)V
athrow
end local 7 23: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.Class java.lang.String int java.lang.ClassLoader java.util.Set jdk.internal.loader.NativeLibrary top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
24: new jdk.internal.loader.NativeLibraries$NativeLibraryImpl
dup
aload 1
aload 2
iload 3
aload 0
getfield jdk.internal.loader.NativeLibraries.isJNI:Z
invokespecial jdk.internal.loader.NativeLibraries$NativeLibraryImpl.<init>:(Ljava/lang/Class;Ljava/lang/String;ZZ)V
astore 7
start local 7 25: getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
aload 7
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
26: aload 7
invokevirtual jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open:()Z
ifne 29
27: getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
aload 5
monitorexit
28: aconst_null
areturn
29: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.Class java.lang.String int java.lang.ClassLoader java.util.Set jdk.internal.loader.NativeLibrary jdk.internal.loader.NativeLibraries$NativeLibraryImpl
StackMap stack:
aload 0
getfield jdk.internal.loader.NativeLibraries.isJNI:Z
ifeq 32
aload 4
invokestatic jdk.internal.misc.VM.isSystemDomainLoader:(Ljava/lang/ClassLoader;)Z
ifne 32
30: aload 4
invokestatic jdk.internal.loader.ClassLoaders.appClassLoader:()Ljava/lang/ClassLoader;
if_acmpeq 32
31: iconst_1
goto 33
StackMap locals:
StackMap stack:
32: iconst_0
StackMap locals:
StackMap stack: int
33: istore 8
start local 8 34: iload 8
ifeq 40
35: invokestatic jdk.internal.ref.CleanerFactory.cleaner:()Ljava/lang/ref/Cleaner;
aload 4
aload 7
invokevirtual jdk.internal.loader.NativeLibraries$NativeLibraryImpl.unloader:()Ljava/lang/Runnable;
invokevirtual java.lang.ref.Cleaner.register:(Ljava/lang/Object;Ljava/lang/Runnable;)Ljava/lang/ref/Cleaner$Cleanable;
pop
end local 8 36: goto 40
StackMap locals:
StackMap stack: java.lang.Throwable
37: astore 9
38: getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
39: aload 9
athrow
40: StackMap locals:
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
41: getstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
42: aload 0
getfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
aload 2
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
43: aload 7
aload 5
monitorexit
44: areturn
end local 7 end local 6 45: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.Class java.lang.String int java.lang.ClassLoader java.util.Set
StackMap stack: java.lang.Throwable
aload 5
monitorexit
46: athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Ljdk/internal/loader/NativeLibraries;
0 47 1 fromClass Ljava/lang/Class<*>;
0 47 2 name Ljava/lang/String;
0 47 3 isBuiltin Z
3 47 4 loader Ljava/lang/ClassLoader;
7 45 6 cached Ljdk/internal/loader/NativeLibrary;
16 23 7 lib Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;
25 45 7 lib Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;
34 36 8 autoUnload Z
Exception table:
from to target type
26 27 37 any
29 37 37 any
6 9 45 any
10 19 45 any
20 28 45 any
29 44 45 any
45 46 45 any
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;Z)Ljdk/internal/loader/NativeLibrary;
MethodParameters:
Name Flags
fromClass
name
isBuiltin
public jdk.internal.loader.NativeLibrary loadLibrary(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.loader.NativeLibraries.$assertionsDisabled:Z
ifne 1
aload 1
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.indexOf:(I)I
iflt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.$assertionsDisabled:Z
ifne 2
aload 0
getfield jdk.internal.loader.NativeLibraries.caller:Ljava/lang/Class;
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.loader.NativeLibraries.caller:Ljava/lang/Class;
aload 1
invokevirtual jdk.internal.loader.NativeLibraries.loadLibrary:(Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/loader/NativeLibraries;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public jdk.internal.loader.NativeLibrary loadLibrary(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.internal.loader.NativeLibraries.$assertionsDisabled:Z
ifne 1
aload 2
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.indexOf:(I)I
iflt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getstatic jdk.internal.loader.NativeLibraries$LibraryPaths.SYS_PATHS:[Ljava/lang/String;
aload 1
aload 2
invokevirtual jdk.internal.loader.NativeLibraries.findFromPaths:([Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
astore 3
start local 3 2: aload 3
ifnonnull 4
aload 0
getfield jdk.internal.loader.NativeLibraries.searchJavaLibraryPath:Z
ifeq 4
3: aload 0
getstatic jdk.internal.loader.NativeLibraries$LibraryPaths.USER_PATHS:[Ljava/lang/String;
aload 1
aload 2
invokevirtual jdk.internal.loader.NativeLibraries.findFromPaths:([Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
astore 3
4: StackMap locals: jdk.internal.loader.NativeLibrary
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/loader/NativeLibraries;
0 5 1 fromClass Ljava/lang/Class<*>;
0 5 2 name Ljava/lang/String;
2 5 3 lib Ljdk/internal/loader/NativeLibrary;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
MethodParameters:
Name Flags
fromClass
name
public void unload(jdk.internal.loader.NativeLibrary);
descriptor: (Ljdk/internal/loader/NativeLibrary;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.loader.NativeLibraries.isJNI:Z
ifeq 2
1: new java.lang.UnsupportedOperationException
dup
ldc "explicit unloading cannot be used with auto unloading"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: getstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
dup
astore 2
monitorenter
4: aload 0
getfield jdk.internal.loader.NativeLibraries.libraries:Ljava/util/Map;
aload 1
invokeinterface jdk.internal.loader.NativeLibrary.name:()Ljava/lang/String;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.loader.NativeLibraries$NativeLibraryImpl
astore 3
start local 3 5: aload 3
aload 1
if_acmpeq 7
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 1
invokeinterface jdk.internal.loader.NativeLibrary.name:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not loaded by this NativeLibraries instance"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.util.Set jdk.internal.loader.NativeLibraries$NativeLibraryImpl
StackMap stack:
aload 3
invokevirtual jdk.internal.loader.NativeLibraries$NativeLibraryImpl.unloader:()Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
end local 3 8: aload 2
monitorexit
9: goto 12
StackMap locals: jdk.internal.loader.NativeLibraries jdk.internal.loader.NativeLibrary java.util.Set
StackMap stack: java.lang.Throwable
10: aload 2
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/internal/loader/NativeLibraries;
0 13 1 lib Ljdk/internal/loader/NativeLibrary;
5 8 3 nl Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;
Exception table:
from to target type
4 9 10 any
10 11 10 any
MethodParameters:
Name Flags
lib
private jdk.internal.loader.NativeLibrary findFromPaths(java.lang.String[], java.lang.Class<?>, java.lang.String);
descriptor: ([Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 12
StackMap locals: jdk.internal.loader.NativeLibraries java.lang.String[] java.lang.Class java.lang.String top int int java.lang.String[]
StackMap stack:
1: aload 7
iload 5
aaload
astore 4
start local 4 2: new java.io.File
dup
aload 4
aload 3
invokestatic java.lang.System.mapLibraryName:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 8
start local 8 3: aload 0
aload 2
aload 8
invokevirtual jdk.internal.loader.NativeLibraries.loadLibrary:(Ljava/lang/Class;Ljava/io/File;)Ljdk/internal/loader/NativeLibrary;
astore 9
start local 9 4: aload 9
ifnull 6
5: aload 9
areturn
6: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.String[] java.lang.Class java.lang.String java.lang.String int int java.lang.String[] java.io.File jdk.internal.loader.NativeLibrary
StackMap stack:
aload 8
invokestatic jdk.internal.loader.ClassLoaderHelper.mapAlternativeName:(Ljava/io/File;)Ljava/io/File;
astore 8
7: aload 8
ifnull 11
8: aload 0
aload 2
aload 8
invokevirtual jdk.internal.loader.NativeLibraries.loadLibrary:(Ljava/lang/Class;Ljava/io/File;)Ljdk/internal/loader/NativeLibrary;
astore 9
9: aload 9
ifnull 11
10: aload 9
areturn
end local 9 end local 8 end local 4 11: StackMap locals: jdk.internal.loader.NativeLibraries java.lang.String[] java.lang.Class java.lang.String top int int java.lang.String[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
12: iload 5
iload 6
if_icmplt 1
13: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/loader/NativeLibraries;
0 14 1 paths [Ljava/lang/String;
0 14 2 fromClass Ljava/lang/Class<*>;
0 14 3 name Ljava/lang/String;
2 11 4 path Ljava/lang/String;
3 11 8 libfile Ljava/io/File;
4 11 9 nl Ljdk/internal/loader/NativeLibrary;
Signature: ([Ljava/lang/String;Ljava/lang/Class<*>;Ljava/lang/String;)Ljdk/internal/loader/NativeLibrary;
MethodParameters:
Name Flags
paths
fromClass
name
private static java.lang.Class<?> getFromClass();
descriptor: ()Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.isEmpty:()Z
ifeq 2
1: ldc Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.peek:()Ljava/lang/Object;
checkcast jdk.internal.loader.NativeLibraries$NativeLibraryImpl
getfield jdk.internal.loader.NativeLibraries$NativeLibraryImpl.fromClass:Ljava/lang/Class;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/lang/Class<*>;
private static native boolean load(jdk.internal.loader.NativeLibraries$NativeLibraryImpl, java.lang.String, boolean, boolean);
descriptor: (Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;Ljava/lang/String;ZZ)Z
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
impl
name
isBuiltin
isJNI
private static native void unload(java.lang.String, boolean, boolean, long);
descriptor: (Ljava/lang/String;ZZJ)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
name
isBuiltin
isJNI
handle
private static native java.lang.String findBuiltinLib(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
name
private static native long findEntry0(jdk.internal.loader.NativeLibraries$NativeLibraryImpl, java.lang.String);
descriptor: (Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;Ljava/lang/String;)J
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
lib
name
}
SourceFile: "NativeLibraries.java"
NestMembers:
jdk.internal.loader.NativeLibraries$1 jdk.internal.loader.NativeLibraries$LibraryPaths jdk.internal.loader.NativeLibraries$NativeLibraryImpl jdk.internal.loader.NativeLibraries$Unloader
InnerClasses:
public abstract Cleanable = java.lang.ref.Cleaner$Cleanable of java.lang.ref.Cleaner
jdk.internal.loader.NativeLibraries$1
LibraryPaths = jdk.internal.loader.NativeLibraries$LibraryPaths of jdk.internal.loader.NativeLibraries
NativeLibraryImpl = jdk.internal.loader.NativeLibraries$NativeLibraryImpl of jdk.internal.loader.NativeLibraries
Unloader = jdk.internal.loader.NativeLibraries$Unloader of jdk.internal.loader.NativeLibraries