final class io.netty.channel.kqueue.KQueueEventLoop extends io.netty.channel.SingleThreadEventLoop
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.netty.channel.kqueue.KQueueEventLoop
super_class: io.netty.channel.SingleThreadEventLoop
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater<io.netty.channel.kqueue.KQueueEventLoop> WAKEN_UP_UPDATER;
descriptor: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater<Lio/netty/channel/kqueue/KQueueEventLoop;>;
private static final int KQUEUE_WAKE_UP_IDENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private final io.netty.channel.kqueue.NativeLongArray jniChannelPointers;
descriptor: Lio/netty/channel/kqueue/NativeLongArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean allowGrowing;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.channel.unix.FileDescriptor kqueueFd;
descriptor: Lio/netty/channel/unix/FileDescriptor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.channel.kqueue.KQueueEventArray changeList;
descriptor: Lio/netty/channel/kqueue/KQueueEventArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.channel.kqueue.KQueueEventArray eventList;
descriptor: Lio/netty/channel/kqueue/KQueueEventArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.channel.SelectStrategy selectStrategy;
descriptor: Lio/netty/channel/SelectStrategy;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.channel.unix.IovArray iovArray;
descriptor: Lio/netty/channel/unix/IovArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.netty.util.IntSupplier selectNowSupplier;
descriptor: Lio/netty/util/IntSupplier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.Callable<java.lang.Integer> pendingTasksCallable;
descriptor: Ljava/util/concurrent/Callable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/Callable<Ljava/lang/Integer;>;
private volatile int wakenUp;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int ioRatio;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final long MAX_SCHEDULED_DAYS;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1095
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 Lio/netty/channel/kqueue/KQueueEventLoop;
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 io.netty.channel.kqueue.KQueueEventLoop.$assertionsDisabled:Z
3: ldc Lio/netty/channel/kqueue/KQueueEventLoop;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.channel.kqueue.KQueueEventLoop.logger:Lio/netty/util/internal/logging/InternalLogger;
4: ldc Lio/netty/channel/kqueue/KQueueEventLoop;
ldc "wakenUp"
invokestatic java.util.concurrent.atomic.AtomicIntegerFieldUpdater.newUpdater:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
5: putstatic io.netty.channel.kqueue.KQueueEventLoop.WAKEN_UP_UPDATER:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
6: invokestatic io.netty.channel.kqueue.KQueue.ensureAvailability:()V
7: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(io.netty.channel.EventLoopGroup, java.util.concurrent.Executor, int, io.netty.channel.SelectStrategy, io.netty.util.concurrent.RejectedExecutionHandler);
descriptor: (Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;ILio/netty/channel/SelectStrategy;Lio/netty/util/concurrent/RejectedExecutionHandler;)V
flags: (0x0000)
Code:
stack=6, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
iconst_0
getstatic io.netty.channel.kqueue.KQueueEventLoop.DEFAULT_MAX_PENDING_TASKS:I
aload 5
invokespecial io.netty.channel.SingleThreadEventLoop.<init>:(Lio/netty/channel/EventLoopGroup;Ljava/util/concurrent/Executor;ZILio/netty/util/concurrent/RejectedExecutionHandler;)V
1: aload 0
new io.netty.channel.unix.IovArray
dup
invokespecial io.netty.channel.unix.IovArray.<init>:()V
putfield io.netty.channel.kqueue.KQueueEventLoop.iovArray:Lio/netty/channel/unix/IovArray;
2: aload 0
new io.netty.channel.kqueue.KQueueEventLoop$1
dup
aload 0
invokespecial io.netty.channel.kqueue.KQueueEventLoop$1.<init>:(Lio/netty/channel/kqueue/KQueueEventLoop;)V
putfield io.netty.channel.kqueue.KQueueEventLoop.selectNowSupplier:Lio/netty/util/IntSupplier;
3: aload 0
new io.netty.channel.kqueue.KQueueEventLoop$2
dup
aload 0
invokespecial io.netty.channel.kqueue.KQueueEventLoop$2.<init>:(Lio/netty/channel/kqueue/KQueueEventLoop;)V
putfield io.netty.channel.kqueue.KQueueEventLoop.pendingTasksCallable:Ljava/util/concurrent/Callable;
4: aload 0
bipush 50
putfield io.netty.channel.kqueue.KQueueEventLoop.ioRatio:I
5: aload 0
aload 4
ldc "strategy"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.channel.SelectStrategy
putfield io.netty.channel.kqueue.KQueueEventLoop.selectStrategy:Lio/netty/channel/SelectStrategy;
6: aload 0
invokestatic io.netty.channel.kqueue.Native.newKQueue:()Lio/netty/channel/unix/FileDescriptor;
putfield io.netty.channel.kqueue.KQueueEventLoop.kqueueFd:Lio/netty/channel/unix/FileDescriptor;
7: iload 3
ifne 11
8: aload 0
iconst_1
putfield io.netty.channel.kqueue.KQueueEventLoop.allowGrowing:Z
9: sipush 4096
istore 3
10: goto 12
11: StackMap locals: io.netty.channel.kqueue.KQueueEventLoop io.netty.channel.EventLoopGroup java.util.concurrent.Executor int io.netty.channel.SelectStrategy io.netty.util.concurrent.RejectedExecutionHandler
StackMap stack:
aload 0
iconst_0
putfield io.netty.channel.kqueue.KQueueEventLoop.allowGrowing:Z
12: StackMap locals:
StackMap stack:
aload 0
new io.netty.channel.kqueue.KQueueEventArray
dup
iload 3
invokespecial io.netty.channel.kqueue.KQueueEventArray.<init>:(I)V
putfield io.netty.channel.kqueue.KQueueEventLoop.changeList:Lio/netty/channel/kqueue/KQueueEventArray;
13: aload 0
new io.netty.channel.kqueue.KQueueEventArray
dup
iload 3
invokespecial io.netty.channel.kqueue.KQueueEventArray.<init>:(I)V
putfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
14: aload 0
new io.netty.channel.kqueue.NativeLongArray
dup
sipush 4096
invokespecial io.netty.channel.kqueue.NativeLongArray.<init>:(I)V
putfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
15: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.kqueueFd:Lio/netty/channel/unix/FileDescriptor;
invokevirtual io.netty.channel.unix.FileDescriptor.intValue:()I
iconst_0
invokestatic io.netty.channel.kqueue.Native.keventAddUserEvent:(II)I
istore 6
start local 6 16: iload 6
ifge 19
17: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.cleanup:()V
18: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "kevent failed to add user event with errno: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 6
ineg
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: int
StackMap stack:
return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 20 1 parent Lio/netty/channel/EventLoopGroup;
0 20 2 executor Ljava/util/concurrent/Executor;
0 20 3 maxEvents I
0 20 4 strategy Lio/netty/channel/SelectStrategy;
0 20 5 rejectedExecutionHandler Lio/netty/util/concurrent/RejectedExecutionHandler;
16 20 6 result I
MethodParameters:
Name Flags
parent
executor
maxEvents
strategy
rejectedExecutionHandler
void evSet(io.netty.channel.kqueue.AbstractKQueueChannel, short, short, int);
descriptor: (Lio/netty/channel/kqueue/AbstractKQueueChannel;SSI)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.changeList:Lio/netty/channel/kqueue/KQueueEventArray;
aload 1
iload 2
iload 3
iload 4
invokevirtual io.netty.channel.kqueue.KQueueEventArray.evSet:(Lio/netty/channel/kqueue/AbstractKQueueChannel;SSI)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 2 1 ch Lio/netty/channel/kqueue/AbstractKQueueChannel;
0 2 2 filter S
0 2 3 flags S
0 2 4 fflags I
MethodParameters:
Name Flags
ch
filter
flags
fflags
void remove(io.netty.channel.kqueue.AbstractKQueueChannel);
descriptor: (Lio/netty/channel/kqueue/AbstractKQueueChannel;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.netty.channel.kqueue.KQueueEventLoop.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.inEventLoop:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
getfield io.netty.channel.kqueue.AbstractKQueueChannel.jniSelfPtr:J
lconst_0
lcmp
ifne 3
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
aload 1
getfield io.netty.channel.kqueue.AbstractKQueueChannel.jniSelfPtr:J
invokevirtual io.netty.channel.kqueue.NativeLongArray.add:(J)V
4: aload 1
lconst_0
putfield io.netty.channel.kqueue.AbstractKQueueChannel.jniSelfPtr:J
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 6 1 ch Lio/netty/channel/kqueue/AbstractKQueueChannel;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
ch
io.netty.channel.unix.IovArray cleanArray();
descriptor: ()Lio/netty/channel/unix/IovArray;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.iovArray:Lio/netty/channel/unix/IovArray;
invokevirtual io.netty.channel.unix.IovArray.clear:()V
1: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.iovArray:Lio/netty/channel/unix/IovArray;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
protected void wakeup(boolean);
descriptor: (Z)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifne 2
getstatic io.netty.channel.kqueue.KQueueEventLoop.WAKEN_UP_UPDATER:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.compareAndSet:(Ljava/lang/Object;II)Z
ifeq 2
1: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.wakeup:()V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 3 1 inEventLoop Z
MethodParameters:
Name Flags
inEventLoop
private void wakeup();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.kqueueFd:Lio/netty/channel/unix/FileDescriptor;
invokevirtual io.netty.channel.unix.FileDescriptor.intValue:()I
iconst_0
invokestatic io.netty.channel.kqueue.Native.keventTriggerUserEvent:(II)I
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
private int kqueueWait(boolean);
descriptor: (Z)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.hasTasks:()Z
ifeq 2
1: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.kqueueWaitNow:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.System.nanoTime:()J
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.delayNanos:(J)J
lstore 2
start local 2 3: lload 2
ldc 1000000000
ldiv
ldc 2147483647
invokestatic java.lang.Math.min:(JJ)J
l2i
istore 4
start local 4 4: aload 0
iload 4
lload 2
iload 4
i2l
ldc 1000000000
lmul
lsub
ldc 2147483647
invokestatic java.lang.Math.min:(JJ)J
l2i
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.kqueueWait:(II)I
ireturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 5 1 oldWakeup Z
3 5 2 totalDelay J
4 5 4 delaySeconds I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oldWakeup
private int kqueueWaitNow();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
iconst_0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.kqueueWait:(II)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
Exceptions:
throws java.io.IOException
private int kqueueWait(int, int);
descriptor: (II)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.deleteJniChannelPointers:()V
1: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.kqueueFd:Lio/netty/channel/unix/FileDescriptor;
invokevirtual io.netty.channel.unix.FileDescriptor.intValue:()I
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.changeList:Lio/netty/channel/kqueue/KQueueEventArray;
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 1
iload 2
invokestatic io.netty.channel.kqueue.Native.keventWait:(ILio/netty/channel/kqueue/KQueueEventArray;Lio/netty/channel/kqueue/KQueueEventArray;II)I
istore 3
start local 3 2: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.changeList:Lio/netty/channel/kqueue/KQueueEventArray;
invokevirtual io.netty.channel.kqueue.KQueueEventArray.clear:()V
3: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 4 1 timeoutSec I
0 4 2 timeoutNs I
2 4 3 numEvents I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeoutSec
timeoutNs
private void deleteJniChannelPointers();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
invokevirtual io.netty.channel.kqueue.NativeLongArray.isEmpty:()Z
ifne 3
1: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
invokevirtual io.netty.channel.kqueue.NativeLongArray.memoryAddress:()J
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
invokevirtual io.netty.channel.kqueue.NativeLongArray.memoryAddressEnd:()J
invokestatic io.netty.channel.kqueue.KQueueEventArray.deleteGlobalRefs:(JJ)V
2: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
invokevirtual io.netty.channel.kqueue.NativeLongArray.clear:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
private void processReady(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 24
2: StackMap locals: int
StackMap stack:
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.filter:(I)S
istore 3
start local 3 3: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.flags:(I)S
istore 4
start local 4 4: iload 3
getstatic io.netty.channel.kqueue.Native.EVFILT_USER:S
if_icmpeq 5
iload 4
getstatic io.netty.channel.kqueue.Native.EV_ERROR:S
iand
ifeq 8
5: StackMap locals: int int
StackMap stack:
getstatic io.netty.channel.kqueue.KQueueEventLoop.$assertionsDisabled:Z
ifne 23
iload 3
getstatic io.netty.channel.kqueue.Native.EVFILT_USER:S
if_icmpne 23
6: iload 3
getstatic io.netty.channel.kqueue.Native.EVFILT_USER:S
if_icmpne 7
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.fd:(I)I
ifeq 23
StackMap locals:
StackMap stack:
7: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.channel:(I)Lio/netty/channel/kqueue/AbstractKQueueChannel;
astore 5
start local 5 9: aload 5
ifnonnull 12
10: getstatic io.netty.channel.kqueue.KQueueEventLoop.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "events[{}]=[{}, {}] had no channel!"
iconst_3
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.fd:(I)I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
iload 3
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
aastore
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
11: goto 23
12: StackMap locals: io.netty.channel.kqueue.AbstractKQueueChannel
StackMap stack:
aload 5
invokevirtual io.netty.channel.kqueue.AbstractKQueueChannel.unsafe:()Lio/netty/channel/Channel$Unsafe;
checkcast io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe
astore 6
start local 6 13: iload 3
getstatic io.netty.channel.kqueue.Native.EVFILT_WRITE:S
if_icmpne 16
14: aload 6
invokevirtual io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe.writeReady:()V
15: goto 21
StackMap locals: io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe
StackMap stack:
16: iload 3
getstatic io.netty.channel.kqueue.Native.EVFILT_READ:S
if_icmpne 19
17: aload 6
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.data:(I)J
invokevirtual io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe.readReady:(J)V
18: goto 21
StackMap locals:
StackMap stack:
19: iload 3
getstatic io.netty.channel.kqueue.Native.EVFILT_SOCK:S
if_icmpne 21
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iload 2
invokevirtual io.netty.channel.kqueue.KQueueEventArray.fflags:(I)S
getstatic io.netty.channel.kqueue.Native.NOTE_RDHUP:I
iand
ifeq 21
20: aload 6
invokevirtual io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe.readEOF:()V
21: StackMap locals:
StackMap stack:
iload 4
getstatic io.netty.channel.kqueue.Native.EV_EOF:S
iand
ifeq 23
22: aload 6
invokevirtual io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe.readEOF:()V
end local 6 end local 5 end local 4 end local 3 23: StackMap locals: io.netty.channel.kqueue.KQueueEventLoop int int
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
24: iload 2
iload 1
if_icmplt 2
end local 2 25: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 26 1 ready I
1 25 2 i I
3 23 3 filter S
4 23 4 flags S
9 23 5 channel Lio/netty/channel/kqueue/AbstractKQueueChannel;
13 23 6 unsafe Lio/netty/channel/kqueue/AbstractKQueueChannel$AbstractKQueueUnsafe;
MethodParameters:
Name Flags
ready
protected void run();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=8, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.selectStrategy:Lio/netty/channel/SelectStrategy;
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.selectNowSupplier:Lio/netty/util/IntSupplier;
aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.hasTasks:()Z
invokeinterface io.netty.channel.SelectStrategy.calculateStrategy:(Lio/netty/util/IntSupplier;Z)I
istore 1
start local 1 1: iload 1
tableswitch { // -2 - -1
-2: 2
-1: 3
default: 8
}
2: StackMap locals: int
StackMap stack:
goto 0
3: StackMap locals:
StackMap stack:
aload 0
getstatic io.netty.channel.kqueue.KQueueEventLoop.WAKEN_UP_UPDATER:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
aload 0
iconst_0
invokevirtual java.util.concurrent.atomic.AtomicIntegerFieldUpdater.getAndSet:(Ljava/lang/Object;I)I
iconst_1
if_icmpne 4
iconst_1
goto 5
StackMap locals:
StackMap stack: io.netty.channel.kqueue.KQueueEventLoop
4: iconst_0
StackMap locals: io.netty.channel.kqueue.KQueueEventLoop int
StackMap stack: io.netty.channel.kqueue.KQueueEventLoop int
5: invokevirtual io.netty.channel.kqueue.KQueueEventLoop.kqueueWait:(Z)I
istore 1
6: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.wakenUp:I
iconst_1
if_icmpne 8
7: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.wakeup:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.ioRatio:I
istore 2
start local 2 9: iload 2
bipush 100
if_icmpne 18
10: iload 1
ifle 16
11: aload 0
iload 1
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.processReady:(I)V
12: goto 16
StackMap locals: io.netty.channel.kqueue.KQueueEventLoop int int
StackMap stack: java.lang.Throwable
13: astore 3
14: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.runAllTasks:()Z
pop
15: aload 3
athrow
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.runAllTasks:()Z
pop
17: goto 28
18: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lstore 3
start local 3 19: iload 1
ifle 26
20: aload 0
iload 1
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.processReady:(I)V
21: goto 26
StackMap locals: io.netty.channel.kqueue.KQueueEventLoop int int long
StackMap stack: java.lang.Throwable
22: astore 5
23: invokestatic java.lang.System.nanoTime:()J
lload 3
lsub
lstore 6
start local 6 24: aload 0
lload 6
bipush 100
iload 2
isub
i2l
lmul
iload 2
i2l
ldiv
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.runAllTasks:(J)Z
pop
end local 6 25: aload 5
athrow
26: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lload 3
lsub
lstore 6
start local 6 27: aload 0
lload 6
bipush 100
iload 2
isub
i2l
lmul
iload 2
i2l
ldiv
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.runAllTasks:(J)Z
pop
end local 6 end local 3 28: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.allowGrowing:Z
ifeq 33
iload 1
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
invokevirtual io.netty.channel.kqueue.KQueueEventArray.capacity:()I
if_icmpne 33
29: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
iconst_0
invokevirtual io.netty.channel.kqueue.KQueueEventArray.realloc:(Z)V
end local 2 end local 1 30: goto 33
StackMap locals: io.netty.channel.kqueue.KQueueEventLoop
StackMap stack: java.lang.Throwable
31: astore 1
start local 1 32: aload 1
invokestatic io.netty.channel.kqueue.KQueueEventLoop.handleLoopException:(Ljava/lang/Throwable;)V
end local 1 33: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.isShuttingDown:()Z
ifeq 0
34: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.closeAll:()V
35: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.confirmShutdown:()Z
ifeq 0
36: goto 40
37: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
start local 1 38: aload 1
invokestatic io.netty.channel.kqueue.KQueueEventLoop.handleLoopException:(Ljava/lang/Throwable;)V
end local 1 39: goto 0
40: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
1 30 1 strategy I
9 30 2 ioRatio I
19 28 3 ioStartTime J
24 25 6 ioTime J
27 28 6 ioTime J
32 33 1 t Ljava/lang/Throwable;
38 39 1 t Ljava/lang/Throwable;
Exception table:
from to target type
10 13 13 any
19 22 22 any
0 2 31 Class java.lang.Throwable
3 30 31 Class java.lang.Throwable
33 36 37 Class java.lang.Throwable
protected java.util.Queue<java.lang.Runnable> newTaskQueue(int);
descriptor: (I)Ljava/util/Queue;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ldc 2147483647
if_icmpne 1
invokestatic io.netty.util.internal.PlatformDependent.newMpscQueue:()Ljava/util/Queue;
goto 2
1: StackMap locals:
StackMap stack:
iload 1
invokestatic io.netty.util.internal.PlatformDependent.newMpscQueue:(I)Ljava/util/Queue;
2: StackMap locals:
StackMap stack: java.util.Queue
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 3 1 maxPendingTasks I
Signature: (I)Ljava/util/Queue<Ljava/lang/Runnable;>;
MethodParameters:
Name Flags
maxPendingTasks
public int pendingTasks();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.inEventLoop:()Z
ifeq 1
aload 0
invokespecial io.netty.channel.SingleThreadEventLoop.pendingTasks:()I
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.pendingTasksCallable:Ljava/util/concurrent/Callable;
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.submit:(Ljava/util/concurrent/Callable;)Lio/netty/util/concurrent/Future;
invokeinterface io.netty.util.concurrent.Future.syncUninterruptibly:()Lio/netty/util/concurrent/Future;
invokeinterface io.netty.util.concurrent.Future.getNow:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
public int getIoRatio();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.ioRatio:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
public void setIoRatio(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 1
iload 1
bipush 100
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "ioRatio: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " (expected: 0 < ioRatio <= 100)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield io.netty.channel.kqueue.KQueueEventLoop.ioRatio:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 4 1 ioRatio I
MethodParameters:
Name Flags
ioRatio
protected void cleanup();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.kqueueFd:Lio/netty/channel/unix/FileDescriptor;
invokevirtual io.netty.channel.unix.FileDescriptor.close:()V
1: goto 11
StackMap locals:
StackMap stack: java.io.IOException
2: astore 1
start local 1 3: getstatic io.netty.channel.kqueue.KQueueEventLoop.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Failed to close the kqueue fd."
aload 1
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 4: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.deleteJniChannelPointers:()V
7: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
invokevirtual io.netty.channel.kqueue.NativeLongArray.free:()V
8: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.changeList:Lio/netty/channel/kqueue/KQueueEventArray;
invokevirtual io.netty.channel.kqueue.KQueueEventArray.free:()V
9: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
invokevirtual io.netty.channel.kqueue.KQueueEventArray.free:()V
10: aload 2
athrow
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.deleteJniChannelPointers:()V
12: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.jniChannelPointers:Lio/netty/channel/kqueue/NativeLongArray;
invokevirtual io.netty.channel.kqueue.NativeLongArray.free:()V
13: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.changeList:Lio/netty/channel/kqueue/KQueueEventArray;
invokevirtual io.netty.channel.kqueue.KQueueEventArray.free:()V
14: aload 0
getfield io.netty.channel.kqueue.KQueueEventLoop.eventList:Lio/netty/channel/kqueue/KQueueEventArray;
invokevirtual io.netty.channel.kqueue.KQueueEventArray.free:()V
15: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
3 4 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
0 5 5 any
private void closeAll();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.channel.kqueue.KQueueEventLoop.kqueueWaitNow:()I
pop
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
Exception table:
from to target type
0 1 2 Class java.io.IOException
private static void handleLoopException(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic io.netty.channel.kqueue.KQueueEventLoop.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "Unexpected exception in the selector loop."
aload 0
invokeinterface io.netty.util.internal.logging.InternalLogger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
1: ldc 1000
invokestatic java.lang.Thread.sleep:(J)V
2: goto 4
StackMap locals:
StackMap stack: java.lang.InterruptedException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 t Ljava/lang/Throwable;
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
MethodParameters:
Name Flags
t
protected void validateScheduled(long, java.util.concurrent.TimeUnit);
descriptor: (JLjava/util/concurrent/TimeUnit;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 3 0: aload 3
lload 1
invokevirtual java.util.concurrent.TimeUnit.toDays:(J)J
lstore 4
start local 4 1: lload 4
ldc 1095
lcmp
ifle 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "days: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 4
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc " (expected: < "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc 1095
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: long
StackMap stack:
return
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/kqueue/KQueueEventLoop;
0 4 1 amount J
0 4 3 unit Ljava/util/concurrent/TimeUnit;
1 4 4 days J
MethodParameters:
Name Flags
amount
unit
static int access$0(io.netty.channel.kqueue.KQueueEventLoop);
descriptor: (Lio/netty/channel/kqueue/KQueueEventLoop;)I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial io.netty.channel.SingleThreadEventLoop.pendingTasks:()I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "KQueueEventLoop.java"
NestMembers:
io.netty.channel.kqueue.KQueueEventLoop$1 io.netty.channel.kqueue.KQueueEventLoop$2
InnerClasses:
public abstract Unsafe = io.netty.channel.Channel$Unsafe of io.netty.channel.Channel
abstract AbstractKQueueUnsafe = io.netty.channel.kqueue.AbstractKQueueChannel$AbstractKQueueUnsafe of io.netty.channel.kqueue.AbstractKQueueChannel
io.netty.channel.kqueue.KQueueEventLoop$1
io.netty.channel.kqueue.KQueueEventLoop$2