class jdk.internal.loader.NativeLibraries$Unloader implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.loader.NativeLibraries$Unloader
super_class: java.lang.Object
{
static final jdk.internal.loader.NativeLibraries$NativeLibraryImpl UNLOADER;
descriptor: Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
final long handle;
descriptor: J
flags: (0x0010) ACC_FINAL
final boolean isBuiltin;
descriptor: Z
flags: (0x0010) ACC_FINAL
final boolean isJNI;
descriptor: Z
flags: (0x0010) ACC_FINAL
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=6, 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$Unloader.$assertionsDisabled:Z
3: new jdk.internal.loader.NativeLibraries$NativeLibraryImpl
dup
aconst_null
ldc "dummy"
iconst_0
iconst_0
invokespecial jdk.internal.loader.NativeLibraries$NativeLibraryImpl.<init>:(Ljava/lang/Class;Ljava/lang/String;ZZ)V
4: putstatic jdk.internal.loader.NativeLibraries$Unloader.UNLOADER:Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;
5: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.lang.String, long, boolean, boolean);
descriptor: (Ljava/lang/String;JZZ)V
flags: (0x0000)
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: getstatic jdk.internal.loader.NativeLibraries$Unloader.$assertionsDisabled:Z
ifne 2
iload 4
ifeq 2
iload 5
ifne 2
new java.lang.AssertionError
dup
ldc "a builtin native library must be JNI library"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals: jdk.internal.loader.NativeLibraries$Unloader java.lang.String long int int
StackMap stack:
lload 2
lconst_0
lcmp
ifne 6
3: new java.lang.IllegalArgumentException
dup
4: new java.lang.StringBuilder
dup
ldc "Invalid handle for native library "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.loader.NativeLibraries$Unloader.name:Ljava/lang/String;
7: aload 0
lload 2
putfield jdk.internal.loader.NativeLibraries$Unloader.handle:J
8: aload 0
iload 4
putfield jdk.internal.loader.NativeLibraries$Unloader.isBuiltin:Z
9: aload 0
iload 5
putfield jdk.internal.loader.NativeLibraries$Unloader.isJNI:Z
10: return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/loader/NativeLibraries$Unloader;
0 11 1 name Ljava/lang/String;
0 11 2 handle J
0 11 4 isBuiltin Z
0 11 5 isJNI Z
MethodParameters:
Name Flags
name
handle
isBuiltin
isJNI
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: getstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
dup
astore 1
monitorenter
1: getstatic jdk.internal.loader.NativeLibraries.loadedLibraryNames:Ljava/util/Set;
aload 0
getfield jdk.internal.loader.NativeLibraries$Unloader.name:Ljava/lang/String;
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
ifne 3
2: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
aload 0
getfield jdk.internal.loader.NativeLibraries$Unloader.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 " has already been unloaded"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.util.Set
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
getstatic jdk.internal.loader.NativeLibraries$Unloader.UNLOADER:Ljdk/internal/loader/NativeLibraries$NativeLibraryImpl;
invokeinterface java.util.Deque.push:(Ljava/lang/Object;)V
4: aload 0
getfield jdk.internal.loader.NativeLibraries$Unloader.name:Ljava/lang/String;
aload 0
getfield jdk.internal.loader.NativeLibraries$Unloader.isBuiltin:Z
aload 0
getfield jdk.internal.loader.NativeLibraries$Unloader.isJNI:Z
aload 0
getfield jdk.internal.loader.NativeLibraries$Unloader.handle:J
invokestatic jdk.internal.loader.NativeLibraries.unload:(Ljava/lang/String;ZZJ)V
5: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 2
7: getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
8: aload 2
athrow
9: StackMap locals:
StackMap stack:
getstatic jdk.internal.loader.NativeLibraries.nativeLibraryContext:Ljava/util/Deque;
invokeinterface java.util.Deque.pop:()Ljava/lang/Object;
pop
10: aload 1
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 1
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/loader/NativeLibraries$Unloader;
Exception table:
from to target type
4 6 6 any
1 11 12 any
12 13 12 any
}
SourceFile: "NativeLibraries.java"
NestHost: jdk.internal.loader.NativeLibraries
InnerClasses:
NativeLibraryImpl = jdk.internal.loader.NativeLibraries$NativeLibraryImpl of jdk.internal.loader.NativeLibraries
Unloader = jdk.internal.loader.NativeLibraries$Unloader of jdk.internal.loader.NativeLibraries