public class java.util.concurrent.FutureTask<V> implements java.util.concurrent.RunnableFuture<V>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: java.util.concurrent.FutureTask
super_class: java.lang.Object
{
private volatile int state;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final int NEW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int COMPLETING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int NORMAL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int EXCEPTIONAL;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private static final int CANCELLED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int INTERRUPTING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private static final int INTERRUPTED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 6
private java.util.concurrent.Callable<V> callable;
descriptor: Ljava/util/concurrent/Callable;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/concurrent/Callable<TV;>;
private java.lang.Object outcome;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private volatile java.lang.Thread runner;
descriptor: Ljava/lang/Thread;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.util.concurrent.FutureTask$WaitNode waiters;
descriptor: Ljava/util/concurrent/FutureTask$WaitNode;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final java.lang.invoke.VarHandle STATE;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.VarHandle RUNNER;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.invoke.VarHandle WAITERS;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
astore 0
start local 0 1: aload 0
ldc Ljava/util/concurrent/FutureTask;
ldc "state"
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
invokevirtual java.lang.invoke.MethodHandles$Lookup.findVarHandle:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
putstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
2: aload 0
ldc Ljava/util/concurrent/FutureTask;
ldc "runner"
ldc Ljava/lang/Thread;
invokevirtual java.lang.invoke.MethodHandles$Lookup.findVarHandle:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
putstatic java.util.concurrent.FutureTask.RUNNER:Ljava/lang/invoke/VarHandle;
3: aload 0
ldc Ljava/util/concurrent/FutureTask;
ldc "waiters"
ldc Ljava/util/concurrent/FutureTask$WaitNode;
invokevirtual java.lang.invoke.MethodHandles$Lookup.findVarHandle:(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
putstatic java.util.concurrent.FutureTask.WAITERS:Ljava/lang/invoke/VarHandle;
end local 0 4: goto 7
StackMap locals:
StackMap stack: java.lang.ReflectiveOperationException
5: astore 0
start local 0 6: new java.lang.ExceptionInInitializerError
dup
aload 0
invokespecial java.lang.ExceptionInInitializerError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 0 7: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
1 4 0 l Ljava/lang/invoke/MethodHandles$Lookup;
6 7 0 e Ljava/lang/ReflectiveOperationException;
Exception table:
from to target type
0 4 5 Class java.lang.ReflectiveOperationException
private V report();
descriptor: (I)Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.FutureTask.outcome:Ljava/lang/Object;
astore 2
start local 2 1: iload 1
iconst_2
if_icmpne 3
2: aload 2
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
iload 1
iconst_4
if_icmplt 5
4: new java.util.concurrent.CancellationException
dup
invokespecial java.util.concurrent.CancellationException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
new java.util.concurrent.ExecutionException
dup
aload 2
checkcast java.lang.Throwable
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 6 1 s I
1 6 2 x Ljava/lang/Object;
Exceptions:
throws java.util.concurrent.ExecutionException
Signature: (I)TV;
MethodParameters:
Name Flags
s
public void <init>(java.util.concurrent.Callable<V>);
descriptor: (Ljava/util/concurrent/Callable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
3: StackMap locals: java.util.concurrent.FutureTask java.util.concurrent.Callable
StackMap stack:
aload 0
aload 1
putfield java.util.concurrent.FutureTask.callable:Ljava/util/concurrent/Callable;
4: aload 0
iconst_0
putfield java.util.concurrent.FutureTask.state:I
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 6 1 callable Ljava/util/concurrent/Callable<TV;>;
Signature: (Ljava/util/concurrent/Callable<TV;>;)V
MethodParameters:
Name Flags
callable
public void <init>(java.lang.Runnable, );
descriptor: (Ljava/lang/Runnable;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
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
aload 1
aload 2
invokestatic java.util.concurrent.Executors.callable:(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Callable;
putfield java.util.concurrent.FutureTask.callable:Ljava/util/concurrent/Callable;
2: aload 0
iconst_0
putfield java.util.concurrent.FutureTask.state:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 4 1 runnable Ljava/lang/Runnable;
0 4 2 result TV;
Signature: (Ljava/lang/Runnable;TV;)V
MethodParameters:
Name Flags
runnable
result
public boolean isCancelled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
iconst_4
if_icmplt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/FutureTask<TV;>;
public boolean isDone();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/util/concurrent/FutureTask<TV;>;
public boolean cancel(boolean);
descriptor: (Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
ifne 5
getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
1: aload 0
iconst_0
iload 1
ifeq 2
iconst_5
goto 3
StackMap locals: java.util.concurrent.FutureTask int
StackMap stack: java.lang.invoke.VarHandle java.util.concurrent.FutureTask int
2: iconst_4
3: StackMap locals: java.util.concurrent.FutureTask int
StackMap stack: java.lang.invoke.VarHandle java.util.concurrent.FutureTask int int
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/FutureTask;II)Z
4: ifne 6
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iload 1
ifeq 19
7: aload 0
getfield java.util.concurrent.FutureTask.runner:Ljava/lang/Thread;
astore 2
start local 2 8: aload 2
ifnull 14
9: aload 2
invokevirtual java.lang.Thread.interrupt:()V
end local 2 10: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 3
12: getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
aload 0
bipush 6
invokevirtual java.lang.invoke.VarHandle.setRelease:(Ljava/util/concurrent/FutureTask;I)V
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
aload 0
bipush 6
invokevirtual java.lang.invoke.VarHandle.setRelease:(Ljava/util/concurrent/FutureTask;I)V
15: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 4
17: aload 0
invokevirtual java.util.concurrent.FutureTask.finishCompletion:()V
18: aload 4
athrow
19: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.FutureTask.finishCompletion:()V
20: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 21 1 mayInterruptIfRunning Z
8 10 2 t Ljava/lang/Thread;
Exception table:
from to target type
7 11 11 any
6 16 16 any
MethodParameters:
Name Flags
mayInterruptIfRunning
public V get();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 1
start local 1 1: iload 1
iconst_1
if_icmpgt 3
2: aload 0
iconst_0
lconst_0
invokevirtual java.util.concurrent.FutureTask.awaitDone:(ZJ)I
istore 1
3: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual java.util.concurrent.FutureTask.report:(I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/util/concurrent/FutureTask<TV;>;
1 4 1 s I
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException
Signature: ()TV;
public V get(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 3
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 4
start local 4 3: iload 4
iconst_1
if_icmpgt 6
4: aload 0
iconst_1
aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
invokevirtual java.util.concurrent.FutureTask.awaitDone:(ZJ)I
dup
istore 4
iconst_1
if_icmpgt 6
5: new java.util.concurrent.TimeoutException
dup
invokespecial java.util.concurrent.TimeoutException.<init>:()V
athrow
6: StackMap locals: int
StackMap stack:
aload 0
iload 4
invokevirtual java.util.concurrent.FutureTask.report:(I)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 7 1 timeout J
0 7 3 unit Ljava/util/concurrent/TimeUnit;
3 7 4 s I
Exceptions:
throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
Signature: (JLjava/util/concurrent/TimeUnit;)TV;
MethodParameters:
Name Flags
timeout
unit
protected void done();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/util/concurrent/FutureTask<TV;>;
protected void set();
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
aload 0
iconst_0
iconst_1
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/FutureTask;II)Z
ifeq 4
1: aload 0
aload 1
putfield java.util.concurrent.FutureTask.outcome:Ljava/lang/Object;
2: getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
aload 0
iconst_2
invokevirtual java.lang.invoke.VarHandle.setRelease:(Ljava/util/concurrent/FutureTask;I)V
3: aload 0
invokevirtual java.util.concurrent.FutureTask.finishCompletion:()V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 5 1 v TV;
Signature: (TV;)V
MethodParameters:
Name Flags
v
protected void setException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
aload 0
iconst_0
iconst_1
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/FutureTask;II)Z
ifeq 4
1: aload 0
aload 1
putfield java.util.concurrent.FutureTask.outcome:Ljava/lang/Object;
2: getstatic java.util.concurrent.FutureTask.STATE:Ljava/lang/invoke/VarHandle;
aload 0
iconst_3
invokevirtual java.lang.invoke.VarHandle.setRelease:(Ljava/util/concurrent/FutureTask;I)V
3: aload 0
invokevirtual java.util.concurrent.FutureTask.finishCompletion:()V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 5 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
ifne 2
1: getstatic java.util.concurrent.FutureTask.RUNNER:Ljava/lang/invoke/VarHandle;
aload 0
aconst_null
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/FutureTask;Ljava/lang/Void;Ljava/lang/Thread;)Z
ifne 3
2: StackMap locals:
StackMap stack:
return
3: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.callable:Ljava/util/concurrent/Callable;
astore 1
start local 1 4: aload 1
ifnull 21
aload 0
getfield java.util.concurrent.FutureTask.state:I
ifne 21
5: aload 1
invokeinterface java.util.concurrent.Callable.call:()Ljava/lang/Object;
astore 2
start local 2 6: iconst_1
istore 3
start local 3 7: goto 12
end local 3 end local 2 StackMap locals: java.util.concurrent.FutureTask java.util.concurrent.Callable
StackMap stack: java.lang.Throwable
8: astore 4
start local 4 9: aconst_null
astore 2
start local 2 10: iconst_0
istore 3
start local 3 11: aload 0
aload 4
invokevirtual java.util.concurrent.FutureTask.setException:(Ljava/lang/Throwable;)V
end local 4 12: StackMap locals: java.lang.Object int
StackMap stack:
iload 3
ifeq 21
13: aload 0
aload 2
invokevirtual java.util.concurrent.FutureTask.set:(Ljava/lang/Object;)V
end local 3 end local 2 end local 1 14: goto 21
StackMap locals: java.util.concurrent.FutureTask
StackMap stack: java.lang.Throwable
15: astore 5
16: aload 0
aconst_null
putfield java.util.concurrent.FutureTask.runner:Ljava/lang/Thread;
17: aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 6
start local 6 18: iload 6
iconst_5
if_icmplt 20
19: aload 0
iload 6
invokevirtual java.util.concurrent.FutureTask.handlePossibleCancellationInterrupt:(I)V
end local 6 20: StackMap locals: java.util.concurrent.FutureTask top top top top java.lang.Throwable
StackMap stack:
aload 5
athrow
21: StackMap locals: java.util.concurrent.FutureTask
StackMap stack:
aload 0
aconst_null
putfield java.util.concurrent.FutureTask.runner:Ljava/lang/Thread;
22: aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 6
start local 6 23: iload 6
iconst_5
if_icmplt 25
24: aload 0
iload 6
invokevirtual java.util.concurrent.FutureTask.handlePossibleCancellationInterrupt:(I)V
end local 6 25: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljava/util/concurrent/FutureTask<TV;>;
4 14 1 c Ljava/util/concurrent/Callable<TV;>;
6 8 2 result TV;
10 14 2 result TV;
7 8 3 ran Z
11 14 3 ran Z
9 12 4 ex Ljava/lang/Throwable;
18 20 6 s I
23 25 6 s I
Exception table:
from to target type
5 7 8 Class java.lang.Throwable
3 15 15 any
protected boolean runAndReset();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
ifne 2
1: getstatic java.util.concurrent.FutureTask.RUNNER:Ljava/lang/invoke/VarHandle;
aload 0
aconst_null
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/FutureTask;Ljava/lang/Void;Ljava/lang/Thread;)Z
ifne 3
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 4: aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 2
start local 2 5: aload 0
getfield java.util.concurrent.FutureTask.callable:Ljava/util/concurrent/Callable;
astore 3
start local 3 6: aload 3
ifnull 19
iload 2
ifne 19
7: aload 3
invokeinterface java.util.concurrent.Callable.call:()Ljava/lang/Object;
pop
8: iconst_1
istore 1
9: goto 19
StackMap locals: java.util.concurrent.FutureTask int int java.util.concurrent.Callable
StackMap stack: java.lang.Throwable
10: astore 4
start local 4 11: aload 0
aload 4
invokevirtual java.util.concurrent.FutureTask.setException:(Ljava/lang/Throwable;)V
end local 4 end local 3 12: goto 19
StackMap locals: java.util.concurrent.FutureTask int int
StackMap stack: java.lang.Throwable
13: astore 5
14: aload 0
aconst_null
putfield java.util.concurrent.FutureTask.runner:Ljava/lang/Thread;
15: aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 2
16: iload 2
iconst_5
if_icmplt 18
17: aload 0
iload 2
invokevirtual java.util.concurrent.FutureTask.handlePossibleCancellationInterrupt:(I)V
18: StackMap locals: java.util.concurrent.FutureTask int int top top java.lang.Throwable
StackMap stack:
aload 5
athrow
19: StackMap locals: java.util.concurrent.FutureTask int int
StackMap stack:
aload 0
aconst_null
putfield java.util.concurrent.FutureTask.runner:Ljava/lang/Thread;
20: aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 2
21: iload 2
iconst_5
if_icmplt 23
22: aload 0
iload 2
invokevirtual java.util.concurrent.FutureTask.handlePossibleCancellationInterrupt:(I)V
23: StackMap locals:
StackMap stack:
iload 1
ifeq 24
iload 2
ifne 24
iconst_1
ireturn
StackMap locals:
StackMap stack:
24: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Ljava/util/concurrent/FutureTask<TV;>;
4 25 1 ran Z
5 25 2 s I
6 12 3 c Ljava/util/concurrent/Callable<TV;>;
11 12 4 ex Ljava/lang/Throwable;
Exception table:
from to target type
7 9 10 Class java.lang.Throwable
5 13 13 any
private void handlePossibleCancellationInterrupt(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_5
if_icmpne 4
1: goto 3
2: StackMap locals:
StackMap stack:
invokestatic java.lang.Thread.yield:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.state:I
iconst_5
if_icmpeq 2
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 5 1 s I
MethodParameters:
Name Flags
s
private void finishCompletion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: goto 12
start local 1 1: StackMap locals: java.util.concurrent.FutureTask$WaitNode
StackMap stack:
getstatic java.util.concurrent.FutureTask.WAITERS:Ljava/lang/invoke/VarHandle;
aload 0
aload 1
aconst_null
invokevirtual java.lang.invoke.VarHandle.weakCompareAndSet:(Ljava/util/concurrent/FutureTask;Ljava/util/concurrent/FutureTask$WaitNode;Ljava/lang/Void;)Z
ifeq 12
2: StackMap locals:
StackMap stack:
aload 1
getfield java.util.concurrent.FutureTask$WaitNode.thread:Ljava/lang/Thread;
astore 2
start local 2 3: aload 2
ifnull 6
4: aload 1
aconst_null
putfield java.util.concurrent.FutureTask$WaitNode.thread:Ljava/lang/Thread;
5: aload 2
invokestatic java.util.concurrent.locks.LockSupport.unpark:(Ljava/lang/Thread;)V
6: StackMap locals: java.lang.Thread
StackMap stack:
aload 1
getfield java.util.concurrent.FutureTask$WaitNode.next:Ljava/util/concurrent/FutureTask$WaitNode;
astore 3
start local 3 7: aload 3
ifnonnull 9
8: goto 14
9: StackMap locals: java.util.concurrent.FutureTask$WaitNode
StackMap stack:
aload 1
aconst_null
putfield java.util.concurrent.FutureTask$WaitNode.next:Ljava/util/concurrent/FutureTask$WaitNode;
10: aload 3
astore 1
end local 3 end local 2 11: goto 2
end local 1 12: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.waiters:Ljava/util/concurrent/FutureTask$WaitNode;
dup
astore 1
start local 1 13: ifnonnull 1
end local 1 14: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.util.concurrent.FutureTask.done:()V
15: aload 0
aconst_null
putfield java.util.concurrent.FutureTask.callable:Ljava/util/concurrent/Callable;
16: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/util/concurrent/FutureTask<TV;>;
1 12 1 q Ljava/util/concurrent/FutureTask$WaitNode;
13 14 1 q Ljava/util/concurrent/FutureTask$WaitNode;
3 11 2 t Ljava/lang/Thread;
7 11 3 next Ljava/util/concurrent/FutureTask$WaitNode;
private int awaitDone(boolean, long);
descriptor: (ZJ)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: lconst_0
lstore 4
start local 4 1: aconst_null
astore 6
start local 6 2: iconst_0
istore 7
start local 7 3: StackMap locals: long java.util.concurrent.FutureTask$WaitNode int
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.state:I
istore 8
start local 8 4: iload 8
iconst_1
if_icmple 8
5: aload 6
ifnull 7
6: aload 6
aconst_null
putfield java.util.concurrent.FutureTask$WaitNode.thread:Ljava/lang/Thread;
7: StackMap locals: int
StackMap stack:
iload 8
ireturn
8: StackMap locals:
StackMap stack:
iload 8
iconst_1
if_icmpne 10
9: invokestatic java.lang.Thread.yield:()V
goto 3
10: StackMap locals:
StackMap stack:
invokestatic java.lang.Thread.interrupted:()Z
ifeq 13
11: aload 0
aload 6
invokevirtual java.util.concurrent.FutureTask.removeWaiter:(Ljava/util/concurrent/FutureTask$WaitNode;)V
12: new java.lang.InterruptedException
dup
invokespecial java.lang.InterruptedException.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
aload 6
ifnonnull 18
14: iload 1
ifeq 16
lload 2
lconst_0
lcmp
ifgt 16
15: iload 8
ireturn
16: StackMap locals:
StackMap stack:
new java.util.concurrent.FutureTask$WaitNode
dup
invokespecial java.util.concurrent.FutureTask$WaitNode.<init>:()V
astore 6
17: goto 3
18: StackMap locals:
StackMap stack:
iload 7
ifne 20
19: getstatic java.util.concurrent.FutureTask.WAITERS:Ljava/lang/invoke/VarHandle;
aload 0
aload 6
aload 0
getfield java.util.concurrent.FutureTask.waiters:Ljava/util/concurrent/FutureTask$WaitNode;
dup_x1
putfield java.util.concurrent.FutureTask$WaitNode.next:Ljava/util/concurrent/FutureTask$WaitNode;
aload 6
invokevirtual java.lang.invoke.VarHandle.weakCompareAndSet:(Ljava/util/concurrent/FutureTask;Ljava/util/concurrent/FutureTask$WaitNode;Ljava/util/concurrent/FutureTask$WaitNode;)Z
istore 7
goto 3
20: StackMap locals:
StackMap stack:
iload 1
ifeq 35
21: lload 4
lconst_0
lcmp
ifne 27
22: invokestatic java.lang.System.nanoTime:()J
lstore 4
23: lload 4
lconst_0
lcmp
ifne 25
24: lconst_1
lstore 4
25: StackMap locals:
StackMap stack:
lload 2
lstore 9
start local 9 26: goto 32
end local 9 27: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lload 4
lsub
lstore 11
start local 11 28: lload 11
lload 2
lcmp
iflt 31
29: aload 0
aload 6
invokevirtual java.util.concurrent.FutureTask.removeWaiter:(Ljava/util/concurrent/FutureTask$WaitNode;)V
30: aload 0
getfield java.util.concurrent.FutureTask.state:I
ireturn
31: StackMap locals: java.util.concurrent.FutureTask int long long java.util.concurrent.FutureTask$WaitNode int int top top long
StackMap stack:
lload 2
lload 11
lsub
lstore 9
end local 11 start local 9 32: StackMap locals: java.util.concurrent.FutureTask int long long java.util.concurrent.FutureTask$WaitNode int int long
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.state:I
iconst_1
if_icmpge 3
33: aload 0
lload 9
invokestatic java.util.concurrent.locks.LockSupport.parkNanos:(Ljava/lang/Object;J)V
end local 9 34: goto 3
35: StackMap locals:
StackMap stack:
aload 0
invokestatic java.util.concurrent.locks.LockSupport.park:(Ljava/lang/Object;)V
end local 8 36: goto 3
end local 7 end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 37 1 timed Z
0 37 2 nanos J
1 37 4 startTime J
2 37 6 q Ljava/util/concurrent/FutureTask$WaitNode;
3 37 7 queued Z
4 36 8 s I
26 27 9 parkNanos J
32 34 9 parkNanos J
28 32 11 elapsed J
Exceptions:
throws java.lang.InterruptedException
MethodParameters:
Name Flags
timed
nanos
private void removeWaiter(java.util.concurrent.FutureTask$WaitNode);
descriptor: (Ljava/util/concurrent/FutureTask$WaitNode;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnull 16
1: aload 1
aconst_null
putfield java.util.concurrent.FutureTask$WaitNode.thread:Ljava/lang/Thread;
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 3: aload 0
getfield java.util.concurrent.FutureTask.waiters:Ljava/util/concurrent/FutureTask$WaitNode;
astore 3
start local 3 4: goto 15
5: StackMap locals: java.util.concurrent.FutureTask$WaitNode java.util.concurrent.FutureTask$WaitNode
StackMap stack:
aload 3
getfield java.util.concurrent.FutureTask$WaitNode.next:Ljava/util/concurrent/FutureTask$WaitNode;
astore 4
start local 4 6: aload 3
getfield java.util.concurrent.FutureTask$WaitNode.thread:Ljava/lang/Thread;
ifnull 8
7: aload 3
astore 2
goto 14
8: StackMap locals: java.util.concurrent.FutureTask$WaitNode
StackMap stack:
aload 2
ifnull 12
9: aload 2
aload 4
putfield java.util.concurrent.FutureTask$WaitNode.next:Ljava/util/concurrent/FutureTask$WaitNode;
10: aload 2
getfield java.util.concurrent.FutureTask$WaitNode.thread:Ljava/lang/Thread;
ifnonnull 14
11: goto 2
12: StackMap locals:
StackMap stack:
getstatic java.util.concurrent.FutureTask.WAITERS:Ljava/lang/invoke/VarHandle;
aload 0
aload 3
aload 4
invokevirtual java.lang.invoke.VarHandle.compareAndSet:(Ljava/util/concurrent/FutureTask;Ljava/util/concurrent/FutureTask$WaitNode;Ljava/util/concurrent/FutureTask$WaitNode;)Z
ifne 14
13: goto 2
14: StackMap locals:
StackMap stack:
aload 4
astore 3
end local 4 StackMap locals:
StackMap stack:
15: aload 3
ifnonnull 5
end local 3 end local 2 16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljava/util/concurrent/FutureTask<TV;>;
0 17 1 node Ljava/util/concurrent/FutureTask$WaitNode;
3 16 2 pred Ljava/util/concurrent/FutureTask$WaitNode;
4 16 3 q Ljava/util/concurrent/FutureTask$WaitNode;
6 15 4 s Ljava/util/concurrent/FutureTask$WaitNode;
MethodParameters:
Name Flags
node
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield java.util.concurrent.FutureTask.state:I
tableswitch { // 2 - 6
2: 1
3: 3
4: 5
5: 5
6: 5
default: 7
}
1: StackMap locals:
StackMap stack:
ldc "[Completed normally]"
astore 1
start local 1 2: goto 12
end local 1 3: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "[Completed exceptionally: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield java.util.concurrent.FutureTask.outcome:Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 4: goto 12
end local 1 5: StackMap locals:
StackMap stack:
ldc "[Cancelled]"
astore 1
start local 1 6: goto 12
end local 1 7: StackMap locals:
StackMap stack:
aload 0
getfield java.util.concurrent.FutureTask.callable:Ljava/util/concurrent/Callable;
astore 2
start local 2 8: aload 2
ifnonnull 10
9: ldc "[Not completed]"
goto 11
10: StackMap locals: java.util.concurrent.FutureTask top java.util.concurrent.Callable
StackMap stack:
new java.lang.StringBuilder
dup
ldc "[Not completed, task = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: StackMap locals:
StackMap stack: java.lang.String
astore 1
end local 2 start local 1 12: StackMap locals: java.util.concurrent.FutureTask java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
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;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/util/concurrent/FutureTask<TV;>;
2 3 1 status Ljava/lang/String;
4 5 1 status Ljava/lang/String;
6 7 1 status Ljava/lang/String;
12 13 1 status Ljava/lang/String;
8 12 2 callable Ljava/util/concurrent/Callable<*>;
}
Signature: <V:Ljava/lang/Object;>Ljava/lang/Object;Ljava/util/concurrent/RunnableFuture<TV;>;
SourceFile: "FutureTask.java"
NestMembers:
java.util.concurrent.FutureTask$WaitNode
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
final WaitNode = java.util.concurrent.FutureTask$WaitNode of java.util.concurrent.FutureTask