public class io.vertx.core.impl.TaskQueue
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.TaskQueue
super_class: java.lang.Object
{
static final io.vertx.core.logging.Logger log;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private final java.util.LinkedList<io.vertx.core.impl.TaskQueue$Task> tasks;
descriptor: Ljava/util/LinkedList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedList<Lio/vertx/core/impl/TaskQueue$Task;>;
private java.util.concurrent.Executor current;
descriptor: Ljava/util/concurrent/Executor;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Runnable runner;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/core/impl/TaskQueue;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.core.impl.TaskQueue.log:Lio/vertx/core/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield io.vertx.core.impl.TaskQueue.tasks:Ljava/util/LinkedList;
2: aload 0
aload 0
invokedynamic run(Lio/vertx/core/impl/TaskQueue;)Ljava/lang/Runnable;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()V
io/vertx/core/impl/TaskQueue.run()V (7)
()V
putfield io.vertx.core.impl.TaskQueue.runner:Ljava/lang/Runnable;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/TaskQueue;
private void run();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.impl.TaskQueue.tasks:Ljava/util/LinkedList;
dup
astore 2
monitorenter
1: aload 0
getfield io.vertx.core.impl.TaskQueue.tasks:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.poll:()Ljava/lang/Object;
checkcast io.vertx.core.impl.TaskQueue$Task
astore 1
start local 1 2: aload 1
ifnonnull 6
3: aload 0
aconst_null
putfield io.vertx.core.impl.TaskQueue.current:Ljava/util/concurrent/Executor;
4: aload 2
monitorexit
5: return
6: StackMap locals: io.vertx.core.impl.TaskQueue$Task java.util.LinkedList
StackMap stack:
aload 1
getfield io.vertx.core.impl.TaskQueue$Task.exec:Ljava/util/concurrent/Executor;
aload 0
getfield io.vertx.core.impl.TaskQueue.current:Ljava/util/concurrent/Executor;
if_acmpeq 12
7: aload 0
getfield io.vertx.core.impl.TaskQueue.tasks:Ljava/util/LinkedList;
aload 1
invokevirtual java.util.LinkedList.addFirst:(Ljava/lang/Object;)V
8: aload 1
getfield io.vertx.core.impl.TaskQueue$Task.exec:Ljava/util/concurrent/Executor;
aload 0
getfield io.vertx.core.impl.TaskQueue.runner:Ljava/lang/Runnable;
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
9: aload 0
aload 1
getfield io.vertx.core.impl.TaskQueue$Task.exec:Ljava/util/concurrent/Executor;
putfield io.vertx.core.impl.TaskQueue.current:Ljava/util/concurrent/Executor;
10: aload 2
monitorexit
11: return
12: StackMap locals:
StackMap stack:
aload 2
monitorexit
13: goto 16
end local 1 StackMap locals: io.vertx.core.impl.TaskQueue top java.util.LinkedList
StackMap stack: java.lang.Throwable
14: aload 2
monitorexit
15: athrow
start local 1 16: StackMap locals: io.vertx.core.impl.TaskQueue io.vertx.core.impl.TaskQueue$Task
StackMap stack:
aload 1
getfield io.vertx.core.impl.TaskQueue$Task.runnable:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
17: goto 0
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 2
start local 2 19: getstatic io.vertx.core.impl.TaskQueue.log:Lio/vertx/core/logging/Logger;
ldc "Caught unexpected Throwable"
aload 2
invokevirtual io.vertx.core.logging.Logger.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 end local 1 20: goto 0
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/vertx/core/impl/TaskQueue;
2 14 1 task Lio/vertx/core/impl/TaskQueue$Task;
16 20 1 task Lio/vertx/core/impl/TaskQueue$Task;
19 20 2 t Ljava/lang/Throwable;
Exception table:
from to target type
1 5 14 any
6 11 14 any
12 13 14 any
14 15 14 any
16 17 18 Class java.lang.Throwable
public void execute(java.lang.Runnable, java.util.concurrent.Executor);
descriptor: (Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.core.impl.TaskQueue.tasks:Ljava/util/LinkedList;
dup
astore 3
monitorenter
1: aload 0
getfield io.vertx.core.impl.TaskQueue.tasks:Ljava/util/LinkedList;
new io.vertx.core.impl.TaskQueue$Task
dup
aload 1
aload 2
invokespecial io.vertx.core.impl.TaskQueue$Task.<init>:(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
2: aload 0
getfield io.vertx.core.impl.TaskQueue.current:Ljava/util/concurrent/Executor;
ifnonnull 5
3: aload 0
aload 2
putfield io.vertx.core.impl.TaskQueue.current:Ljava/util/concurrent/Executor;
4: aload 2
aload 0
getfield io.vertx.core.impl.TaskQueue.runner:Ljava/lang/Runnable;
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
5: StackMap locals: java.util.LinkedList
StackMap stack:
aload 3
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 3
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/core/impl/TaskQueue;
0 10 1 task Ljava/lang/Runnable;
0 10 2 executor Ljava/util/concurrent/Executor;
Exception table:
from to target type
1 6 7 any
7 8 7 any
MethodParameters:
Name Flags
task
executor
}
SourceFile: "TaskQueue.java"
NestMembers:
io.vertx.core.impl.TaskQueue$Task
InnerClasses:
private Task = io.vertx.core.impl.TaskQueue$Task of io.vertx.core.impl.TaskQueue
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles