abstract class sun.nio.fs.Cancellable implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.fs.Cancellable
super_class: java.lang.Object
{
private static final sun.misc.Unsafe unsafe;
descriptor: Lsun/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final long pollingAddress;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean completed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.Throwable exception;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic sun.misc.Unsafe.getUnsafe:()Lsun/misc/Unsafe;
putstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
2: aload 0
getstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
ldc 4
invokevirtual sun.misc.Unsafe.allocateMemory:(J)J
putfield sun.nio.fs.Cancellable.pollingAddress:J
3: getstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
aconst_null
aload 0
getfield sun.nio.fs.Cancellable.pollingAddress:J
iconst_0
invokevirtual sun.misc.Unsafe.putIntVolatile:(Ljava/lang/Object;JI)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/fs/Cancellable;
protected long addressToPollForCancel();
descriptor: ()J
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.Cancellable.pollingAddress:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/Cancellable;
protected int cancelValue();
descriptor: ()I
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc 2147483647
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/Cancellable;
final void cancel();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.fs.Cancellable.completed:Z
ifne 3
2: getstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
aconst_null
aload 0
getfield sun.nio.fs.Cancellable.pollingAddress:J
aload 0
invokevirtual sun.nio.fs.Cancellable.cancelValue:()I
invokevirtual sun.misc.Unsafe.putIntVolatile:(Ljava/lang/Object;JI)V
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
4: goto 7
StackMap locals:
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/fs/Cancellable;
Exception table:
from to target type
1 4 5 any
5 6 5 any
private java.lang.Throwable exception();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.fs.Cancellable.exception:Ljava/lang/Throwable;
aload 1
monitorexit
2: areturn
3: StackMap locals: sun.nio.fs.Cancellable java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/fs/Cancellable;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public final void run();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.fs.Cancellable.implRun:()V
1: goto 25
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 1
start local 1 3: aload 0
getfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
4: aload 0
aload 1
putfield sun.nio.fs.Cancellable.exception:Ljava/lang/Throwable;
5: aload 2
monitorexit
6: goto 9
StackMap locals: sun.nio.fs.Cancellable java.lang.Throwable java.lang.Object
StackMap stack: java.lang.Throwable
7: aload 2
monitorexit
8: athrow
end local 1 9: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
10: aload 0
iconst_1
putfield sun.nio.fs.Cancellable.completed:Z
11: getstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
aload 0
getfield sun.nio.fs.Cancellable.pollingAddress:J
invokevirtual sun.misc.Unsafe.freeMemory:(J)V
12: aload 4
monitorexit
13: goto 32
StackMap locals: sun.nio.fs.Cancellable top top top java.lang.Object
StackMap stack: java.lang.Throwable
14: aload 4
monitorexit
15: athrow
16: StackMap locals: sun.nio.fs.Cancellable
StackMap stack: java.lang.Throwable
astore 3
17: aload 0
getfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
18: aload 0
iconst_1
putfield sun.nio.fs.Cancellable.completed:Z
19: getstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
aload 0
getfield sun.nio.fs.Cancellable.pollingAddress:J
invokevirtual sun.misc.Unsafe.freeMemory:(J)V
20: aload 4
monitorexit
21: goto 24
StackMap locals: sun.nio.fs.Cancellable top top java.lang.Throwable java.lang.Object
StackMap stack: java.lang.Throwable
22: aload 4
monitorexit
23: athrow
24: StackMap locals:
StackMap stack:
aload 3
athrow
25: StackMap locals: sun.nio.fs.Cancellable
StackMap stack:
aload 0
getfield sun.nio.fs.Cancellable.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
26: aload 0
iconst_1
putfield sun.nio.fs.Cancellable.completed:Z
27: getstatic sun.nio.fs.Cancellable.unsafe:Lsun/misc/Unsafe;
aload 0
getfield sun.nio.fs.Cancellable.pollingAddress:J
invokevirtual sun.misc.Unsafe.freeMemory:(J)V
28: aload 4
monitorexit
29: goto 32
StackMap locals: sun.nio.fs.Cancellable top top top java.lang.Object
StackMap stack: java.lang.Throwable
30: aload 4
monitorexit
31: athrow
32: StackMap locals: sun.nio.fs.Cancellable
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lsun/nio/fs/Cancellable;
3 9 1 t Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
4 6 7 any
7 8 7 any
10 13 14 any
14 15 14 any
0 9 16 any
18 21 22 any
22 23 22 any
26 29 30 any
30 31 30 any
abstract void implRun();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.lang.Throwable
static void runInterruptibly(sun.nio.fs.Cancellable);
descriptor: (Lsun/nio/fs/Cancellable;)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.lang.Thread
dup
aload 0
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 1
start local 1 1: aload 1
invokevirtual java.lang.Thread.start:()V
2: iconst_0
istore 2
start local 2 3: goto 9
4: StackMap locals: java.lang.Thread int
StackMap stack:
aload 1
invokevirtual java.lang.Thread.join:()V
5: goto 9
StackMap locals:
StackMap stack: java.lang.InterruptedException
6: pop
7: iconst_1
istore 2
8: aload 0
invokevirtual sun.nio.fs.Cancellable.cancel:()V
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Thread.isAlive:()Z
ifne 4
10: iload 2
ifeq 12
11: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.fs.Cancellable.exception:()Ljava/lang/Throwable;
astore 3
start local 3 13: aload 3
ifnull 15
14: new java.util.concurrent.ExecutionException
dup
aload 3
invokespecial java.util.concurrent.ExecutionException.<init>:(Ljava/lang/Throwable;)V
athrow
15: StackMap locals: java.lang.Throwable
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 task Lsun/nio/fs/Cancellable;
1 16 1 t Ljava/lang/Thread;
3 16 2 cancelledByInterrupt Z
13 16 3 exc Ljava/lang/Throwable;
Exception table:
from to target type
4 5 6 Class java.lang.InterruptedException
Exceptions:
throws java.util.concurrent.ExecutionException
MethodParameters:
Name Flags
task
}
SourceFile: "Cancellable.java"