class sun.nio.ch.PendingIoCache
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.PendingIoCache
super_class: java.lang.Object
{
private static final jdk.internal.misc.Unsafe unsafe;
descriptor: Ljdk/internal/misc/Unsafe;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int addressSize;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int SIZEOF_OVERLAPPED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean closePending;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.util.Map<java.lang.Long, sun.nio.ch.PendingFuture> pendingIoMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Long;Lsun/nio/ch/PendingFuture;>;
private long[] overlappedCache;
descriptor: [J
flags: (0x0002) ACC_PRIVATE
private int overlappedCacheCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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=2, locals=0, args_size=0
0: ldc Lsun/nio/ch/PendingIoCache;
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 sun.nio.ch.PendingIoCache.$assertionsDisabled:Z
3: invokestatic jdk.internal.misc.Unsafe.getUnsafe:()Ljdk/internal/misc/Unsafe;
putstatic sun.nio.ch.PendingIoCache.unsafe:Ljdk/internal/misc/Unsafe;
4: getstatic sun.nio.ch.PendingIoCache.unsafe:Ljdk/internal/misc/Unsafe;
invokevirtual jdk.internal.misc.Unsafe.addressSize:()I
putstatic sun.nio.ch.PendingIoCache.addressSize:I
5: bipush 20
bipush 32
invokestatic sun.nio.ch.PendingIoCache.dependsArch:(II)I
putstatic sun.nio.ch.PendingIoCache.SIZEOF_OVERLAPPED:I
return
LocalVariableTable:
Start End Slot Name Signature
private static int dependsArch(int, int);
descriptor: (II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.PendingIoCache.addressSize:I
iconst_4
if_icmpne 1
iload 0
goto 2
StackMap locals:
StackMap stack:
1: iload 1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value32 I
0 3 1 value64 I
MethodParameters:
Name Flags
value32
value64
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
3: aload 0
iconst_4
newarray 11
putfield sun.nio.ch.PendingIoCache.overlappedCache:[J
4: aload 0
iconst_0
putfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/PendingIoCache;
long add(sun.nio.ch.PendingFuture<?, ?>);
descriptor: (Lsun/nio/ch/PendingFuture;)J
flags: (0x0000)
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.PendingIoCache.closed:Z
ifeq 3
2: new java.lang.AssertionError
dup
ldc "Should not get here"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals: sun.nio.ch.PendingIoCache
StackMap stack:
aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
ifle 6
4: aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCache:[J
aload 0
dup
getfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
iconst_1
isub
dup_x1
putfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
laload
lstore 3
start local 3 5: goto 7
end local 3 6: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PendingIoCache.unsafe:Ljdk/internal/misc/Unsafe;
getstatic sun.nio.ch.PendingIoCache.SIZEOF_OVERLAPPED:I
i2l
invokevirtual jdk.internal.misc.Unsafe.allocateMemory:(J)J
lstore 3
start local 3 7: StackMap locals: long
StackMap stack:
aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
lload 3
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: lload 3
aload 2
monitorexit
9: lreturn
end local 3 10: StackMap locals: sun.nio.ch.PendingIoCache sun.nio.ch.PendingFuture sun.nio.ch.PendingIoCache
StackMap stack: java.lang.Throwable
aload 2
monitorexit
11: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/PendingIoCache;
0 12 1 result Lsun/nio/ch/PendingFuture<**>;
5 6 3 ov J
7 10 3 ov J
Exception table:
from to target type
1 9 10 any
10 11 10 any
Signature: (Lsun/nio/ch/PendingFuture<**>;)J
MethodParameters:
Name Flags
result
<V, A> sun.nio.ch.PendingFuture<V, A> remove(long);
descriptor: (J)Lsun/nio/ch/PendingFuture;
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 3
monitorenter
1: aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.ch.PendingFuture
astore 4
start local 4 2: aload 4
ifnull 9
3: aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCache:[J
arraylength
if_icmpge 6
4: aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCache:[J
aload 0
dup
getfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
dup_x1
iconst_1
iadd
putfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
lload 1
lastore
5: goto 7
6: StackMap locals: sun.nio.ch.PendingIoCache sun.nio.ch.PendingFuture
StackMap stack:
getstatic sun.nio.ch.PendingIoCache.unsafe:Ljdk/internal/misc/Unsafe;
lload 1
invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
7: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PendingIoCache.closePending:Z
ifeq 9
8: aload 0
invokevirtual java.lang.Object.notifyAll:()V
9: StackMap locals:
StackMap stack:
aload 4
aload 3
monitorexit
10: areturn
end local 4 11: StackMap locals: sun.nio.ch.PendingIoCache long sun.nio.ch.PendingIoCache
StackMap stack: java.lang.Throwable
aload 3
monitorexit
12: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/PendingIoCache;
0 13 1 overlapped J
2 11 4 res Lsun/nio/ch/PendingFuture<TV;TA;>;
Exception table:
from to target type
1 10 11 any
11 12 11 any
Signature: <V:Ljava/lang/Object;A:Ljava/lang/Object;>(J)Lsun/nio/ch/PendingFuture<TV;TA;>;
MethodParameters:
Name Flags
overlapped
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.ch.PendingIoCache.closed:Z
ifeq 4
2: aload 1
monitorexit
3: return
4: StackMap locals: sun.nio.ch.PendingIoCache
StackMap stack:
aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 8
5: aload 0
invokevirtual sun.nio.ch.PendingIoCache.clearPendingIoMap:()V
6: goto 8
7: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.PendingIoCache.unsafe:Ljdk/internal/misc/Unsafe;
aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCache:[J
aload 0
dup
getfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
iconst_1
isub
dup_x1
putfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
laload
invokevirtual jdk.internal.misc.Unsafe.freeMemory:(J)V
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PendingIoCache.overlappedCacheCount:I
ifgt 7
9: aload 0
iconst_1
putfield sun.nio.ch.PendingIoCache.closed:Z
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 Lsun/nio/ch/PendingIoCache;
Exception table:
from to target type
1 3 12 any
4 11 12 any
12 13 12 any
private void clearPendingIoMap();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=1
start local 0 0: getstatic sun.nio.ch.PendingIoCache.$assertionsDisabled:Z
ifne 1
aload 0
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.ch.PendingIoCache.closePending:Z
2: aload 0
ldc 50
invokevirtual java.lang.Object.wait:(J)V
3: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
4: pop
5: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
6: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.nio.ch.PendingIoCache.closePending:Z
7: aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifeq 9
8: return
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 2
goto 18
StackMap locals: sun.nio.ch.PendingIoCache top java.util.Iterator
StackMap stack:
10: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Long
astore 1
start local 1 11: aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.ch.PendingFuture
astore 3
start local 3 12: getstatic sun.nio.ch.PendingIoCache.$assertionsDisabled:Z
ifne 13
aload 3
invokevirtual sun.nio.ch.PendingFuture.isDone:()Z
ifeq 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals: sun.nio.ch.PendingIoCache java.lang.Long java.util.Iterator sun.nio.ch.PendingFuture
StackMap stack:
aload 3
invokevirtual sun.nio.ch.PendingFuture.channel:()Ljava/nio/channels/AsynchronousChannel;
checkcast sun.nio.ch.Groupable
invokeinterface sun.nio.ch.Groupable.group:()Lsun/nio/ch/AsynchronousChannelGroupImpl;
checkcast sun.nio.ch.Iocp
astore 4
start local 4 14: aload 4
aload 1
invokevirtual sun.nio.ch.Iocp.makeStale:(Ljava/lang/Long;)V
15: aload 3
invokevirtual sun.nio.ch.PendingFuture.getContext:()Ljava/lang/Object;
checkcast sun.nio.ch.Iocp$ResultHandler
astore 5
start local 5 16: new sun.nio.ch.PendingIoCache$1
dup
aload 0
aload 5
invokespecial sun.nio.ch.PendingIoCache$1.<init>:(Lsun/nio/ch/PendingIoCache;Lsun/nio/ch/Iocp$ResultHandler;)V
astore 6
start local 6 17: aload 4
aload 6
invokevirtual sun.nio.ch.Iocp.executeOnPooledThread:(Ljava/lang/Runnable;)V
end local 6 end local 5 end local 4 end local 3 end local 1 18: StackMap locals: sun.nio.ch.PendingIoCache top java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
19: aload 0
getfield sun.nio.ch.PendingIoCache.pendingIoMap:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
20: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/ch/PendingIoCache;
11 18 1 ov Ljava/lang/Long;
12 18 3 result Lsun/nio/ch/PendingFuture<**>;
14 18 4 iocp Lsun/nio/ch/Iocp;
16 18 5 rh Lsun/nio/ch/Iocp$ResultHandler;
17 18 6 task Ljava/lang/Runnable;
Exception table:
from to target type
2 3 4 Class java.lang.InterruptedException
}
SourceFile: "PendingIoCache.java"
NestMembers:
sun.nio.ch.PendingIoCache$1
InnerClasses:
abstract ResultHandler = sun.nio.ch.Iocp$ResultHandler of sun.nio.ch.Iocp
sun.nio.ch.PendingIoCache$1