class sun.nio.ch.KQueueArrayWrapper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.KQueueArrayWrapper
super_class: java.lang.Object
{
static short EVFILT_READ;
descriptor: S
flags: (0x0008) ACC_STATIC
static short EVFILT_WRITE;
descriptor: S
flags: (0x0008) ACC_STATIC
static short SIZEOF_KEVENT;
descriptor: S
flags: (0x0008) ACC_STATIC
static short FD_OFFSET;
descriptor: S
flags: (0x0008) ACC_STATIC
static short FILTER_OFFSET;
descriptor: S
flags: (0x0008) ACC_STATIC
static final int NUM_KEVENTS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 128
static boolean is64bit;
descriptor: Z
flags: (0x0008) ACC_STATIC
private sun.nio.ch.AllocatedNativeObject keventArray;
descriptor: Lsun/nio/ch/AllocatedNativeObject;
flags: (0x0002) ACC_PRIVATE
private long keventArrayAddress;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private int kq;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int outgoingInterruptFD;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int incomingInterruptFD;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.util.LinkedList<sun.nio.ch.KQueueArrayWrapper$Update> updateList;
descriptor: Ljava/util/LinkedList;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/LinkedList<Lsun/nio/ch/KQueueArrayWrapper$Update;>;
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=3, locals=1, args_size=0
0: ldc Lsun/nio/ch/KQueueArrayWrapper;
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.KQueueArrayWrapper.$assertionsDisabled:Z
3: iconst_0
putstatic sun.nio.ch.KQueueArrayWrapper.is64bit:Z
4: invokestatic sun.nio.ch.IOUtil.load:()V
5: invokestatic sun.nio.ch.KQueueArrayWrapper.initStructSizes:()V
6: new sun.security.action.GetPropertyAction
dup
ldc "sun.arch.data.model"
invokespecial sun.security.action.GetPropertyAction.<init>:(Ljava/lang/String;)V
7: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 8: aload 0
ldc "64"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putstatic sun.nio.ch.KQueueArrayWrapper.is64bit:Z
end local 0 9: return
LocalVariableTable:
Start End Slot Name Signature
8 9 0 datamodel Ljava/lang/String;
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
2: aload 0
iconst_m1
putfield sun.nio.ch.KQueueArrayWrapper.kq:I
3: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
4: getstatic sun.nio.ch.KQueueArrayWrapper.SIZEOF_KEVENT:S
sipush 128
imul
istore 1
start local 1 5: aload 0
new sun.nio.ch.AllocatedNativeObject
dup
iload 1
iconst_1
invokespecial sun.nio.ch.AllocatedNativeObject.<init>:(IZ)V
putfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
6: aload 0
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.address:()J
putfield sun.nio.ch.KQueueArrayWrapper.keventArrayAddress:J
7: aload 0
aload 0
invokevirtual sun.nio.ch.KQueueArrayWrapper.init:()I
putfield sun.nio.ch.KQueueArrayWrapper.kq:I
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/KQueueArrayWrapper;
5 9 1 allocationSize I
void initInterrupt(int, int);
descriptor: (II)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 2
putfield sun.nio.ch.KQueueArrayWrapper.outgoingInterruptFD:I
1: aload 0
iload 1
putfield sun.nio.ch.KQueueArrayWrapper.incomingInterruptFD:I
2: aload 0
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.kq:I
iload 1
iconst_1
iconst_0
invokevirtual sun.nio.ch.KQueueArrayWrapper.register0:(IIII)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/KQueueArrayWrapper;
0 4 1 fd0 I
0 4 2 fd1 I
MethodParameters:
Name Flags
fd0
fd1
int getReventOps(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: getstatic sun.nio.ch.KQueueArrayWrapper.SIZEOF_KEVENT:S
iload 1
imul
getstatic sun.nio.ch.KQueueArrayWrapper.FILTER_OFFSET:S
iadd
istore 3
start local 3 2: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
iload 3
invokevirtual sun.nio.ch.AllocatedNativeObject.getShort:(I)S
istore 4
start local 4 3: iload 4
getstatic sun.nio.ch.KQueueArrayWrapper.EVFILT_READ:S
if_icmpne 6
4: iload 2
getstatic sun.nio.ch.Net.POLLIN:S
ior
istore 2
5: goto 8
StackMap locals: int int int
StackMap stack:
6: iload 4
getstatic sun.nio.ch.KQueueArrayWrapper.EVFILT_WRITE:S
if_icmpne 8
7: iload 2
getstatic sun.nio.ch.Net.POLLOUT:S
ior
istore 2
8: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/ch/KQueueArrayWrapper;
0 9 1 index I
1 9 2 result I
2 9 3 offset I
3 9 4 filter S
MethodParameters:
Name Flags
index
int getDescriptor(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: getstatic sun.nio.ch.KQueueArrayWrapper.SIZEOF_KEVENT:S
iload 1
imul
getstatic sun.nio.ch.KQueueArrayWrapper.FD_OFFSET:S
iadd
istore 2
start local 2 1: getstatic sun.nio.ch.KQueueArrayWrapper.is64bit:Z
ifeq 5
2: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
iload 2
invokevirtual sun.nio.ch.AllocatedNativeObject.getLong:(I)J
lstore 3
start local 3 3: getstatic sun.nio.ch.KQueueArrayWrapper.$assertionsDisabled:Z
ifne 4
lload 3
ldc 2147483647
lcmp
ifle 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: int long
StackMap stack:
lload 3
l2i
ireturn
end local 3 5: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
iload 2
invokevirtual sun.nio.ch.AllocatedNativeObject.getInt:(I)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/KQueueArrayWrapper;
0 6 1 index I
1 6 2 offset I
3 5 3 fd J
MethodParameters:
Name Flags
index
void setInterest(sun.nio.ch.SelChImpl, int);
descriptor: (Lsun/nio/ch/SelChImpl;I)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
dup
astore 3
monitorenter
1: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
new sun.nio.ch.KQueueArrayWrapper$Update
dup
aload 1
iload 2
invokespecial sun.nio.ch.KQueueArrayWrapper$Update.<init>:(Lsun/nio/ch/SelChImpl;I)V
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
2: aload 3
monitorexit
3: goto 6
StackMap locals: sun.nio.ch.KQueueArrayWrapper sun.nio.ch.SelChImpl int java.util.LinkedList
StackMap stack: java.lang.Throwable
4: aload 3
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/KQueueArrayWrapper;
0 7 1 channel Lsun/nio/ch/SelChImpl;
0 7 2 events I
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
channel
events
void release(sun.nio.ch.SelChImpl);
descriptor: (Lsun/nio/ch/SelChImpl;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
dup
astore 2
monitorenter
1: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 5
3: StackMap locals: java.util.LinkedList java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.nio.ch.KQueueArrayWrapper$Update
getfield sun.nio.ch.KQueueArrayWrapper$Update.channel:Lsun/nio/ch/SelChImpl;
aload 1
if_acmpne 5
4: aload 3
invokeinterface java.util.Iterator.remove:()V
5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
end local 3 6: aload 0
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.kq:I
aload 1
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
iconst_0
iconst_0
invokevirtual sun.nio.ch.KQueueArrayWrapper.register0:(IIII)V
7: aload 2
monitorexit
8: goto 11
StackMap locals: sun.nio.ch.KQueueArrayWrapper sun.nio.ch.SelChImpl java.util.LinkedList
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/ch/KQueueArrayWrapper;
0 12 1 channel Lsun/nio/ch/SelChImpl;
2 6 3 it Ljava/util/Iterator<Lsun/nio/ch/KQueueArrayWrapper$Update;>;
Exception table:
from to target type
1 8 9 any
9 10 9 any
MethodParameters:
Name Flags
channel
void updateRegistrations();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
dup
astore 1
monitorenter
1: aconst_null
astore 2
start local 2 2: goto 7
3: StackMap locals: java.util.LinkedList sun.nio.ch.KQueueArrayWrapper$Update
StackMap stack:
aload 2
getfield sun.nio.ch.KQueueArrayWrapper$Update.channel:Lsun/nio/ch/SelChImpl;
astore 3
start local 3 4: aload 3
invokeinterface sun.nio.ch.SelChImpl.isOpen:()Z
ifne 6
5: goto 7
6: StackMap locals: sun.nio.ch.SelChImpl
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.kq:I
aload 3
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
aload 2
getfield sun.nio.ch.KQueueArrayWrapper$Update.events:I
getstatic sun.nio.ch.Net.POLLIN:S
iand
aload 2
getfield sun.nio.ch.KQueueArrayWrapper$Update.events:I
getstatic sun.nio.ch.Net.POLLOUT:S
iand
invokevirtual sun.nio.ch.KQueueArrayWrapper.register0:(IIII)V
end local 3 7: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.updateList:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.poll:()Ljava/lang/Object;
checkcast sun.nio.ch.KQueueArrayWrapper$Update
dup
astore 2
ifnonnull 3
end local 2 8: aload 1
monitorexit
9: goto 12
StackMap locals: sun.nio.ch.KQueueArrayWrapper java.util.LinkedList
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/KQueueArrayWrapper;
2 8 2 u Lsun/nio/ch/KQueueArrayWrapper$Update;
4 7 3 ch Lsun/nio/ch/SelChImpl;
Exception table:
from to target type
1 9 10 any
10 11 10 any
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
ifnull 3
1: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
invokevirtual sun.nio.ch.AllocatedNativeObject.free:()V
2: aload 0
aconst_null
putfield sun.nio.ch.KQueueArrayWrapper.keventArray:Lsun/nio/ch/AllocatedNativeObject;
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.kq:I
iflt 6
4: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.kq:I
invokestatic sun.nio.ch.FileDispatcherImpl.closeIntFD:(I)V
5: aload 0
iconst_m1
putfield sun.nio.ch.KQueueArrayWrapper.kq:I
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/KQueueArrayWrapper;
Exceptions:
throws java.io.IOException
int poll(long);
descriptor: (J)I
flags: (0x0000)
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.KQueueArrayWrapper.updateRegistrations:()V
1: aload 0
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.kq:I
aload 0
getfield sun.nio.ch.KQueueArrayWrapper.keventArrayAddress:J
sipush 128
lload 1
invokevirtual sun.nio.ch.KQueueArrayWrapper.kevent0:(IJIJ)I
istore 3
start local 3 2: iload 3
ireturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/KQueueArrayWrapper;
0 3 1 timeout J
2 3 3 updated I
MethodParameters:
Name Flags
timeout
void interrupt();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.KQueueArrayWrapper.outgoingInterruptFD:I
invokestatic sun.nio.ch.KQueueArrayWrapper.interrupt:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/KQueueArrayWrapper;
private native int init();
descriptor: ()I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
private static native void initStructSizes();
descriptor: ()V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
private native void register0(int, int, int, int);
descriptor: (IIII)V
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
kq
fd
read
write
private native int kevent0(int, long, int, long);
descriptor: (IJIJ)I
flags: (0x0102) ACC_PRIVATE, ACC_NATIVE
MethodParameters:
Name Flags
kq
keventAddress
keventCount
timeout
private static native void interrupt(int);
descriptor: (I)V
flags: (0x010a) ACC_PRIVATE, ACC_STATIC, ACC_NATIVE
MethodParameters:
Name Flags
fd
}
SourceFile: "KQueueArrayWrapper.java"
NestMembers:
sun.nio.ch.KQueueArrayWrapper$Update
InnerClasses:
private Update = sun.nio.ch.KQueueArrayWrapper$Update of sun.nio.ch.KQueueArrayWrapper