public class org.eclipse.jetty.util.thread.ShutdownThread extends java.lang.Thread
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.thread.ShutdownThread
super_class: java.lang.Thread
{
private static final org.slf4j.Logger LOG;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.eclipse.jetty.util.thread.ShutdownThread _thread;
descriptor: Lorg/eclipse/jetty/util/thread/ShutdownThread;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.eclipse.jetty.util.thread.AutoLock _lock;
descriptor: Lorg/eclipse/jetty/util/thread/AutoLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean _hooked;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.List<org.eclipse.jetty.util.component.LifeCycle> _lifeCycles;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/eclipse/jetty/util/component/LifeCycle;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/util/thread/ShutdownThread;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
1: new org.eclipse.jetty.util.thread.ShutdownThread
dup
invokespecial org.eclipse.jetty.util.thread.ShutdownThread.<init>:()V
putstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc "JettyShutdownThread"
invokespecial java.lang.Thread.<init>:(Ljava/lang/String;)V
1: aload 0
new org.eclipse.jetty.util.thread.AutoLock
dup
invokespecial org.eclipse.jetty.util.thread.AutoLock.<init>:()V
putfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
2: aload 0
new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
putfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/thread/ShutdownThread;
private void hook();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
invokevirtual org.eclipse.jetty.util.thread.AutoLock.lock:()Lorg/eclipse/jetty/util/thread/AutoLock;
astore 3
start local 3 2: aload 0
getfield org.eclipse.jetty.util.thread.ShutdownThread._hooked:Z
ifne 4
3: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 0
invokevirtual java.lang.Runtime.addShutdownHook:(Ljava/lang/Thread;)V
4: StackMap locals: java.lang.Throwable java.lang.Throwable org.eclipse.jetty.util.thread.AutoLock
StackMap stack:
aload 0
iconst_1
putfield org.eclipse.jetty.util.thread.ShutdownThread._hooked:Z
5: aload 3
ifnull 14
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 1
aload 3
ifnull 7
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
end local 3 StackMap locals:
StackMap stack:
7: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
aload 1
ifnonnull 9
aload 2
astore 1
goto 10
StackMap locals:
StackMap stack:
9: aload 1
aload 2
if_acmpeq 10
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 1
athrow
11: StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread
StackMap stack: java.lang.Exception
astore 1
start local 1 12: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "IGNORED"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Throwable;)V
13: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "shutdown already commenced"
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
end local 1 14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/eclipse/jetty/util/thread/ShutdownThread;
2 7 3 l Lorg/eclipse/jetty/util/thread/AutoLock;
12 14 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 5 6 any
1 8 8 any
0 11 11 Class java.lang.Exception
private void unhook();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
invokevirtual org.eclipse.jetty.util.thread.AutoLock.lock:()Lorg/eclipse/jetty/util/thread/AutoLock;
astore 3
start local 3 2: aload 0
iconst_0
putfield org.eclipse.jetty.util.thread.ShutdownThread._hooked:Z
3: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
aload 0
invokevirtual java.lang.Runtime.removeShutdownHook:(Ljava/lang/Thread;)Z
pop
4: aload 3
ifnull 13
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
goto 13
StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread java.lang.Throwable java.lang.Throwable org.eclipse.jetty.util.thread.AutoLock
StackMap stack: java.lang.Throwable
5: astore 1
aload 3
ifnull 6
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
end local 3 StackMap locals:
StackMap stack:
6: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 2
aload 1
ifnonnull 8
aload 2
astore 1
goto 9
StackMap locals:
StackMap stack:
8: aload 1
aload 2
if_acmpeq 9
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
9: aload 1
athrow
10: StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread
StackMap stack: java.lang.Exception
astore 1
start local 1 11: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "IGNORED"
aload 1
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Throwable;)V
12: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "shutdown already commenced"
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;)V
end local 1 13: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/eclipse/jetty/util/thread/ShutdownThread;
2 6 3 l Lorg/eclipse/jetty/util/thread/AutoLock;
11 13 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 4 5 any
1 7 7 any
0 10 10 Class java.lang.Exception
public static org.eclipse.jetty.util.thread.ShutdownThread getInstance();
descriptor: ()Lorg/eclipse/jetty/util/thread/ShutdownThread;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static void register(org.eclipse.jetty.util.component.LifeCycle[]);
descriptor: ([Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
invokevirtual org.eclipse.jetty.util.thread.AutoLock.lock:()Lorg/eclipse/jetty/util/thread/AutoLock;
astore 3
start local 3 2: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
3: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 5
4: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
invokevirtual org.eclipse.jetty.util.thread.ShutdownThread.hook:()V
5: StackMap locals: java.lang.Throwable java.lang.Throwable org.eclipse.jetty.util.thread.AutoLock
StackMap stack:
aload 3
ifnull 11
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 1
aload 3
ifnull 7
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
end local 3 StackMap locals:
StackMap stack:
7: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
aload 1
ifnonnull 9
aload 2
astore 1
goto 10
StackMap locals:
StackMap stack:
9: aload 1
aload 2
if_acmpeq 10
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 1
athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 lifeCycles [Lorg/eclipse/jetty/util/component/LifeCycle;
2 7 3 l Lorg/eclipse/jetty/util/thread/AutoLock;
Exception table:
from to target type
2 5 6 any
1 8 8 any
MethodParameters:
Name Flags
lifeCycles
public static void register(int, org.eclipse.jetty.util.component.LifeCycle[]);
descriptor: (I[Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
invokevirtual org.eclipse.jetty.util.thread.AutoLock.lock:()Lorg/eclipse/jetty/util/thread/AutoLock;
astore 4
start local 4 2: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
iload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(ILjava/util/Collection;)Z
pop
3: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifle 5
4: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
invokevirtual org.eclipse.jetty.util.thread.ShutdownThread.hook:()V
5: StackMap locals: java.lang.Throwable java.lang.Throwable org.eclipse.jetty.util.thread.AutoLock
StackMap stack:
aload 4
ifnull 11
aload 4
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 2
aload 4
ifnull 7
aload 4
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 index I
0 12 1 lifeCycles [Lorg/eclipse/jetty/util/component/LifeCycle;
2 7 4 l Lorg/eclipse/jetty/util/thread/AutoLock;
Exception table:
from to target type
2 5 6 any
1 8 8 any
MethodParameters:
Name Flags
index
lifeCycles
public static void deregister(org.eclipse.jetty.util.component.LifeCycle);
descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
invokevirtual org.eclipse.jetty.util.thread.AutoLock.lock:()Lorg/eclipse/jetty/util/thread/AutoLock;
astore 3
start local 3 2: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
aload 0
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
3: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
invokeinterface java.util.List.size:()I
ifne 5
4: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
invokevirtual org.eclipse.jetty.util.thread.ShutdownThread.unhook:()V
5: StackMap locals: java.lang.Throwable java.lang.Throwable org.eclipse.jetty.util.thread.AutoLock
StackMap stack:
aload 3
ifnull 11
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 1
aload 3
ifnull 7
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
end local 3 StackMap locals:
StackMap stack:
7: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
aload 1
ifnonnull 9
aload 2
astore 1
goto 10
StackMap locals:
StackMap stack:
9: aload 1
aload 2
if_acmpeq 10
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 1
athrow
11: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
2 7 3 l Lorg/eclipse/jetty/util/thread/AutoLock;
Exception table:
from to target type
2 5 6 any
1 8 8 any
MethodParameters:
Name Flags
lifeCycle
public static boolean isRegistered(org.eclipse.jetty.util.component.LifeCycle);
descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lock:Lorg/eclipse/jetty/util/thread/AutoLock;
invokevirtual org.eclipse.jetty.util.thread.AutoLock.lock:()Lorg/eclipse/jetty/util/thread/AutoLock;
astore 3
start local 3 2: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
aload 0
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
3: aload 3
ifnull 4
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
4: StackMap locals: org.eclipse.jetty.util.component.LifeCycle java.lang.Throwable java.lang.Throwable org.eclipse.jetty.util.thread.AutoLock
StackMap stack: int
ireturn
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 1
6: aload 3
ifnull 7
aload 3
invokevirtual org.eclipse.jetty.util.thread.AutoLock.close:()V
end local 3 StackMap locals:
StackMap stack:
7: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 2
aload 1
ifnonnull 9
aload 2
astore 1
goto 10
StackMap locals:
StackMap stack:
9: aload 1
aload 2
if_acmpeq 10
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
2 7 3 l Lorg/eclipse/jetty/util/thread/AutoLock;
Exception table:
from to target type
2 3 5 any
1 4 8 any
5 8 8 any
MethodParameters:
Name Flags
lifeCycle
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: getstatic org.eclipse.jetty.util.thread.ShutdownThread._thread:Lorg/eclipse/jetty/util/thread/ShutdownThread;
getfield org.eclipse.jetty.util.thread.ShutdownThread._lifeCycles:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 11
StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.eclipse.jetty.util.component.LifeCycle
astore 1
start local 1 2: aload 1
invokeinterface org.eclipse.jetty.util.component.LifeCycle.isStarted:()Z
ifeq 5
3: aload 1
invokeinterface org.eclipse.jetty.util.component.LifeCycle.stop:()V
4: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "Stopped {}"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
5: StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread org.eclipse.jetty.util.component.LifeCycle java.util.Iterator
StackMap stack:
aload 1
instanceof org.eclipse.jetty.util.component.Destroyable
ifeq 11
6: aload 1
checkcast org.eclipse.jetty.util.component.Destroyable
invokeinterface org.eclipse.jetty.util.component.Destroyable.destroy:()V
7: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "Destroyed {}"
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
8: goto 11
9: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 10: getstatic org.eclipse.jetty.util.thread.ShutdownThread.LOG:Lorg/slf4j/Logger;
ldc "Unable to stop"
aload 3
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 end local 1 11: StackMap locals: org.eclipse.jetty.util.thread.ShutdownThread top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
12: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/jetty/util/thread/ShutdownThread;
2 11 1 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
10 11 3 ex Ljava/lang/Exception;
Exception table:
from to target type
2 8 9 Class java.lang.Exception
}
SourceFile: "ShutdownThread.java"