public class io.netty.util.HashedWheelTimer extends java.lang.Object implements io.netty.util.Timer
{
static final io.netty.util.internal.logging.InternalLogger logger;
private static final java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER;
private static final java.util.concurrent.atomic.AtomicBoolean WARNED_TOO_MANY_INSTANCES;
private static final int INSTANCE_COUNT_LIMIT;
private static final long MILLISECOND_NANOS;
private static final io.netty.util.ResourceLeakDetector leakDetector;
private static final java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER;
private final io.netty.util.ResourceLeakTracker leak;
private final io.netty.util.HashedWheelTimer$Worker worker;
private final java.lang.Thread workerThread;
public static final int WORKER_STATE_INIT;
public static final int WORKER_STATE_STARTED;
public static final int WORKER_STATE_SHUTDOWN;
private volatile int workerState;
private final long tickDuration;
private final io.netty.util.HashedWheelTimer$HashedWheelBucket[] wheel;
private final int mask;
private final java.util.concurrent.CountDownLatch startTimeInitialized;
private final java.util.Queue timeouts;
private final java.util.Queue cancelledTimeouts;
private final java.util.concurrent.atomic.AtomicLong pendingTimeouts;
private final long maxPendingTimeouts;
private final java.util.concurrent.Executor taskExecutor;
private volatile long startTime;
static final boolean $assertionsDisabled;
public void <init>()
{
io.netty.util.HashedWheelTimer v;
java.util.concurrent.ThreadFactory v;
v := @this: io.netty.util.HashedWheelTimer;
v = staticinvoke <java.util.concurrent.Executors: java.util.concurrent.ThreadFactory defaultThreadFactory()>();
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory)>(v);
return;
}
public void <init>(long, java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
io.netty.util.HashedWheelTimer v;
long v;
java.util.concurrent.ThreadFactory v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
v = staticinvoke <java.util.concurrent.Executors: java.util.concurrent.ThreadFactory defaultThreadFactory()>();
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit)>(v, v, v);
return;
}
public void <init>(long, java.util.concurrent.TimeUnit, int)
{
java.util.concurrent.TimeUnit v;
int v;
io.netty.util.HashedWheelTimer v;
long v;
java.util.concurrent.ThreadFactory v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
v := @parameter: int;
v = staticinvoke <java.util.concurrent.Executors: java.util.concurrent.ThreadFactory defaultThreadFactory()>();
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit,int)>(v, v, v, v);
return;
}
public void <init>(java.util.concurrent.ThreadFactory)
{
io.netty.util.HashedWheelTimer v;
java.util.concurrent.TimeUnit v;
java.util.concurrent.ThreadFactory v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: java.util.concurrent.ThreadFactory;
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit)>(v, 100L, v);
return;
}
public void <init>(java.util.concurrent.ThreadFactory, long, java.util.concurrent.TimeUnit)
{
java.util.concurrent.TimeUnit v;
io.netty.util.HashedWheelTimer v;
long v;
java.util.concurrent.ThreadFactory v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: java.util.concurrent.ThreadFactory;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit,int)>(v, v, v, 512);
return;
}
public void <init>(java.util.concurrent.ThreadFactory, long, java.util.concurrent.TimeUnit, int)
{
java.util.concurrent.TimeUnit v;
int v;
io.netty.util.HashedWheelTimer v;
long v;
java.util.concurrent.ThreadFactory v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: java.util.concurrent.ThreadFactory;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
v := @parameter: int;
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit,int,boolean)>(v, v, v, v, 1);
return;
}
public void <init>(java.util.concurrent.ThreadFactory, long, java.util.concurrent.TimeUnit, int, boolean)
{
java.util.concurrent.TimeUnit v;
int v;
io.netty.util.HashedWheelTimer v;
long v;
java.util.concurrent.ThreadFactory v;
boolean v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: java.util.concurrent.ThreadFactory;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
v := @parameter: int;
v := @parameter: boolean;
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit,int,boolean,long)>(v, v, v, v, v, -1L);
return;
}
public void <init>(java.util.concurrent.ThreadFactory, long, java.util.concurrent.TimeUnit, int, boolean, long)
{
long v, v;
java.util.concurrent.TimeUnit v;
int v;
io.netty.util.HashedWheelTimer v;
java.util.concurrent.ThreadFactory v;
io.netty.util.concurrent.ImmediateExecutor v;
boolean v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: java.util.concurrent.ThreadFactory;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
v := @parameter: int;
v := @parameter: boolean;
v := @parameter: long;
v = <io.netty.util.concurrent.ImmediateExecutor: io.netty.util.concurrent.ImmediateExecutor INSTANCE>;
specialinvoke v.<io.netty.util.HashedWheelTimer: void <init>(java.util.concurrent.ThreadFactory,long,java.util.concurrent.TimeUnit,int,boolean,long,java.util.concurrent.Executor)>(v, v, v, v, v, v, v);
return;
}
public void <init>(java.util.concurrent.ThreadFactory, long, java.util.concurrent.TimeUnit, int, boolean, long, java.util.concurrent.Executor)
{
byte v, v;
java.lang.Long v, v, v, v;
java.util.concurrent.atomic.AtomicInteger v;
java.lang.Thread v, v;
java.util.concurrent.ThreadFactory v;
boolean v, v, v;
io.netty.util.ResourceLeakDetector v;
java.util.concurrent.CountDownLatch v;
io.netty.util.internal.logging.InternalLogger v;
io.netty.util.HashedWheelTimer v;
java.util.Queue v, v;
java.lang.Object[] v;
java.util.concurrent.atomic.AtomicBoolean v;
long v, v, v, v, v, v, v, v;
io.netty.util.HashedWheelTimer$Worker v, v;
int v, v, v, v, v, v;
io.netty.util.HashedWheelTimer$HashedWheelBucket[] v, v, v, v;
java.lang.String v;
io.netty.util.ResourceLeakTracker v;
java.util.concurrent.Executor v;
java.lang.IllegalArgumentException v;
java.util.concurrent.TimeUnit v;
java.util.concurrent.atomic.AtomicLong v;
java.lang.Object v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: java.util.concurrent.ThreadFactory;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
v := @parameter: int;
v := @parameter: boolean;
v := @parameter: long;
v := @parameter: java.util.concurrent.Executor;
specialinvoke v.<java.lang.Object: void <init>()>();
v = new io.netty.util.HashedWheelTimer$Worker;
specialinvoke v.<io.netty.util.HashedWheelTimer$Worker: void <init>(io.netty.util.HashedWheelTimer)>(v);
v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$Worker worker> = v;
v = new java.util.concurrent.CountDownLatch;
specialinvoke v.<java.util.concurrent.CountDownLatch: void <init>(int)>(1);
v.<io.netty.util.HashedWheelTimer: java.util.concurrent.CountDownLatch startTimeInitialized> = v;
v = staticinvoke <io.netty.util.internal.PlatformDependent: java.util.Queue newMpscQueue()>();
v.<io.netty.util.HashedWheelTimer: java.util.Queue timeouts> = v;
v = staticinvoke <io.netty.util.internal.PlatformDependent: java.util.Queue newMpscQueue()>();
v.<io.netty.util.HashedWheelTimer: java.util.Queue cancelledTimeouts> = v;
v = new java.util.concurrent.atomic.AtomicLong;
specialinvoke v.<java.util.concurrent.atomic.AtomicLong: void <init>(long)>(0L);
v.<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicLong pendingTimeouts> = v;
staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "threadFactory");
staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "unit");
staticinvoke <io.netty.util.internal.ObjectUtil: long checkPositive(long,java.lang.String)>(v, "tickDuration");
staticinvoke <io.netty.util.internal.ObjectUtil: int checkPositive(int,java.lang.String)>(v, "ticksPerWheel");
v = staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "taskExecutor");
v.<io.netty.util.HashedWheelTimer: java.util.concurrent.Executor taskExecutor> = v;
v = staticinvoke <io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$HashedWheelBucket[] createWheel(int)>(v);
v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$HashedWheelBucket[] wheel> = v;
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$HashedWheelBucket[] wheel>;
v = lengthof v;
v = v - 1;
v.<io.netty.util.HashedWheelTimer: int mask> = v;
v = virtualinvoke v.<java.util.concurrent.TimeUnit: long toNanos(long)>(v);
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$HashedWheelBucket[] wheel>;
v = lengthof v;
v = 9223372036854775807L / v;
v = v cmp v;
if v < 0 goto label;
v = new java.lang.IllegalArgumentException;
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v[0] = v;
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$HashedWheelBucket[] wheel>;
v = lengthof v;
v = 9223372036854775807L / v;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("tickDuration: %d (expected: 0 < tickDuration in nanos < %d", v);
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
v = <io.netty.util.HashedWheelTimer: long MILLISECOND_NANOS>;
v = v cmp v;
if v >= 0 goto label;
v = <io.netty.util.HashedWheelTimer: io.netty.util.internal.logging.InternalLogger logger>;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v = <io.netty.util.HashedWheelTimer: long MILLISECOND_NANOS>;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
interfaceinvoke v.<io.netty.util.internal.logging.InternalLogger: void warn(java.lang.String,java.lang.Object,java.lang.Object)>("Configured tickDuration {} smaller than {}, using 1ms.", v, v);
v = <io.netty.util.HashedWheelTimer: long MILLISECOND_NANOS>;
v.<io.netty.util.HashedWheelTimer: long tickDuration> = v;
goto label;
label:
v.<io.netty.util.HashedWheelTimer: long tickDuration> = v;
label:
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$Worker worker>;
v = interfaceinvoke v.<java.util.concurrent.ThreadFactory: java.lang.Thread newThread(java.lang.Runnable)>(v);
v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread> = v;
if v != 0 goto label;
v = v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread>;
v = virtualinvoke v.<java.lang.Thread: boolean isDaemon()>();
if v != 0 goto label;
label:
v = <io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakDetector leakDetector>;
v = virtualinvoke v.<io.netty.util.ResourceLeakDetector: io.netty.util.ResourceLeakTracker track(java.lang.Object)>(v);
goto label;
label:
v = null;
label:
v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak> = v;
v.<io.netty.util.HashedWheelTimer: long maxPendingTimeouts> = v;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int incrementAndGet()>();
if v <= 64 goto label;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicBoolean WARNED_TOO_MANY_INSTANCES>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicBoolean: boolean compareAndSet(boolean,boolean)>(0, 1);
if v == 0 goto label;
staticinvoke <io.netty.util.HashedWheelTimer: void reportTooManyInstances()>();
label:
return;
}
protected void finalize() throws java.lang.Throwable
{
java.lang.Throwable v;
java.util.concurrent.atomic.AtomicIntegerFieldUpdater v, v;
java.util.concurrent.atomic.AtomicInteger v, v;
int v, v;
io.netty.util.HashedWheelTimer v;
v := @this: io.netty.util.HashedWheelTimer;
label:
specialinvoke v.<java.lang.Object: void finalize()>();
label:
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicIntegerFieldUpdater: int getAndSet(java.lang.Object,int)>(v, 2);
if v == 2 goto label;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int decrementAndGet()>();
goto label;
label:
v := @caughtexception;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicIntegerFieldUpdater: int getAndSet(java.lang.Object,int)>(v, 2);
if v == 2 goto label;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int decrementAndGet()>();
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
private static io.netty.util.HashedWheelTimer$HashedWheelBucket[] createWheel(int)
{
int v, v, v, v;
io.netty.util.HashedWheelTimer$HashedWheelBucket[] v;
io.netty.util.HashedWheelTimer$HashedWheelBucket v;
v := @parameter: int;
staticinvoke <io.netty.util.internal.ObjectUtil: int checkInRange(int,int,int,java.lang.String)>(v, 1, 1073741824, "ticksPerWheel");
v = staticinvoke <io.netty.util.HashedWheelTimer: int normalizeTicksPerWheel(int)>(v);
v = newarray (io.netty.util.HashedWheelTimer$HashedWheelBucket)[v];
v = 0;
label:
v = lengthof v;
if v >= v goto label;
v = new io.netty.util.HashedWheelTimer$HashedWheelBucket;
specialinvoke v.<io.netty.util.HashedWheelTimer$HashedWheelBucket: void <init>()>();
v[v] = v;
v = v + 1;
goto label;
label:
return v;
}
private static int normalizeTicksPerWheel(int)
{
int v, v;
v := @parameter: int;
v = 1;
label:
if v >= v goto label;
v = v << 1;
goto label;
label:
return v;
}
public void start()
{
java.lang.IllegalStateException v;
java.util.concurrent.atomic.AtomicIntegerFieldUpdater v, v;
java.lang.Error v;
long v;
java.util.concurrent.CountDownLatch v;
byte v;
java.lang.InterruptedException v;
java.lang.Thread v;
int v;
io.netty.util.HashedWheelTimer v;
boolean v;
v := @this: io.netty.util.HashedWheelTimer;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicIntegerFieldUpdater: int get(java.lang.Object)>(v);
tableswitch(v)
{
case 0: goto label;
case 1: goto label;
case 2: goto label;
default: goto label;
};
label:
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicIntegerFieldUpdater: boolean compareAndSet(java.lang.Object,int,int)>(v, 0, 1);
if v == 0 goto label;
v = v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread>;
virtualinvoke v.<java.lang.Thread: void start()>();
goto label;
label:
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("cannot be started once stopped");
throw v;
label:
v = new java.lang.Error;
specialinvoke v.<java.lang.Error: void <init>(java.lang.String)>("Invalid WorkerState");
throw v;
label:
v = v.<io.netty.util.HashedWheelTimer: long startTime>;
v = v cmp 0L;
if v != 0 goto label;
label:
v = v.<io.netty.util.HashedWheelTimer: java.util.concurrent.CountDownLatch startTimeInitialized>;
virtualinvoke v.<java.util.concurrent.CountDownLatch: void await()>();
label:
goto label;
label:
v := @caughtexception;
goto label;
label:
return;
catch java.lang.InterruptedException from label to label with label;
}
public java.util.Set stop()
{
java.lang.IllegalStateException v;
java.util.concurrent.atomic.AtomicInteger v, v, v;
java.lang.Thread v, v, v, v, v, v;
boolean v, v, v, v, v, v, v, v, v;
java.util.Set v, v;
io.netty.util.HashedWheelTimer v;
java.lang.Throwable v;
java.util.concurrent.atomic.AtomicIntegerFieldUpdater v, v;
java.lang.AssertionError v, v, v;
io.netty.util.HashedWheelTimer$Worker v;
int v;
java.lang.String v, v, v;
io.netty.util.ResourceLeakTracker v, v, v, v, v, v;
java.lang.InterruptedException v;
java.lang.Class v, v;
v := @this: io.netty.util.HashedWheelTimer;
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
v = v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread>;
if v != v goto label;
v = new java.lang.IllegalStateException;
v = class "Lio/netty/util/HashedWheelTimer;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getSimpleName()>();
v = class "Lio/netty/util/TimerTask;";
v = virtualinvoke v.<java.lang.Class: java.lang.String getSimpleName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u.stop() cannot be called from \u0001");
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicIntegerFieldUpdater: boolean compareAndSet(java.lang.Object,int,int)>(v, 1, 2);
if v != 0 goto label;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicIntegerFieldUpdater: int getAndSet(java.lang.Object,int)>(v, 2);
if v == 2 goto label;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int decrementAndGet()>();
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak>;
if v == null goto label;
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak>;
v = interfaceinvoke v.<io.netty.util.ResourceLeakTracker: boolean close(java.lang.Object)>(v);
v = <io.netty.util.HashedWheelTimer: boolean $assertionsDisabled>;
if v != 0 goto label;
if v != 0 goto label;
v = new java.lang.AssertionError;
specialinvoke v.<java.lang.AssertionError: void <init>()>();
throw v;
label:
v = staticinvoke <java.util.Collections: java.util.Set emptySet()>();
return v;
label:
v = 0;
label:
v = v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread>;
v = virtualinvoke v.<java.lang.Thread: boolean isAlive()>();
if v == 0 goto label;
v = v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread>;
virtualinvoke v.<java.lang.Thread: void interrupt()>();
label:
v = v.<io.netty.util.HashedWheelTimer: java.lang.Thread workerThread>;
virtualinvoke v.<java.lang.Thread: void join(long)>(100L);
label:
goto label;
label:
v := @caughtexception;
v = 1;
goto label;
label:
if v == 0 goto label;
v = staticinvoke <java.lang.Thread: java.lang.Thread currentThread()>();
virtualinvoke v.<java.lang.Thread: void interrupt()>();
label:
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int decrementAndGet()>();
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak>;
if v == null goto label;
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak>;
v = interfaceinvoke v.<io.netty.util.ResourceLeakTracker: boolean close(java.lang.Object)>(v);
v = <io.netty.util.HashedWheelTimer: boolean $assertionsDisabled>;
if v != 0 goto label;
if v != 0 goto label;
v = new java.lang.AssertionError;
specialinvoke v.<java.lang.AssertionError: void <init>()>();
throw v;
label:
v := @caughtexception;
v = <io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int decrementAndGet()>();
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak>;
if v == null goto label;
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakTracker leak>;
v = interfaceinvoke v.<io.netty.util.ResourceLeakTracker: boolean close(java.lang.Object)>(v);
v = <io.netty.util.HashedWheelTimer: boolean $assertionsDisabled>;
if v != 0 goto label;
if v != 0 goto label;
v = new java.lang.AssertionError;
specialinvoke v.<java.lang.AssertionError: void <init>()>();
throw v;
label:
throw v;
label:
v = v.<io.netty.util.HashedWheelTimer: io.netty.util.HashedWheelTimer$Worker worker>;
v = virtualinvoke v.<io.netty.util.HashedWheelTimer$Worker: java.util.Set unprocessedTimeouts()>();
return v;
catch java.lang.InterruptedException from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public io.netty.util.Timeout newTimeout(io.netty.util.TimerTask, long, java.util.concurrent.TimeUnit)
{
long v, v, v, v, v, v, v, v, v, v;
java.util.concurrent.RejectedExecutionException v;
byte v, v, v, v;
io.netty.util.TimerTask v;
java.lang.String v;
io.netty.util.HashedWheelTimer$HashedWheelTimeout v;
java.util.concurrent.TimeUnit v;
java.util.concurrent.atomic.AtomicLong v, v;
io.netty.util.HashedWheelTimer v;
java.util.Queue v;
v := @this: io.netty.util.HashedWheelTimer;
v := @parameter: io.netty.util.TimerTask;
v := @parameter: long;
v := @parameter: java.util.concurrent.TimeUnit;
staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "task");
staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "unit");
v = v.<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicLong pendingTimeouts>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicLong: long incrementAndGet()>();
v = v.<io.netty.util.HashedWheelTimer: long maxPendingTimeouts>;
v = v cmp 0L;
if v <= 0 goto label;
v = v.<io.netty.util.HashedWheelTimer: long maxPendingTimeouts>;
v = v cmp v;
if v <= 0 goto label;
v = v.<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicLong pendingTimeouts>;
virtualinvoke v.<java.util.concurrent.atomic.AtomicLong: long decrementAndGet()>();
v = new java.util.concurrent.RejectedExecutionException;
v = v.<io.netty.util.HashedWheelTimer: long maxPendingTimeouts>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (long,long)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Number of pending timeouts (\u) is greater than or equal to maximum allowed pending timeouts (\u)");
specialinvoke v.<java.util.concurrent.RejectedExecutionException: void <init>(java.lang.String)>(v);
throw v;
label:
virtualinvoke v.<io.netty.util.HashedWheelTimer: void start()>();
v = staticinvoke <java.lang.System: long nanoTime()>();
v = virtualinvoke v.<java.util.concurrent.TimeUnit: long toNanos(long)>(v);
v = v + v;
v = v.<io.netty.util.HashedWheelTimer: long startTime>;
v = v - v;
v = v cmp 0L;
if v <= 0 goto label;
v = v cmp 0L;
if v >= 0 goto label;
v = 9223372036854775807L;
label:
v = new io.netty.util.HashedWheelTimer$HashedWheelTimeout;
specialinvoke v.<io.netty.util.HashedWheelTimer$HashedWheelTimeout: void <init>(io.netty.util.HashedWheelTimer,io.netty.util.TimerTask,long)>(v, v, v);
v = v.<io.netty.util.HashedWheelTimer: java.util.Queue timeouts>;
interfaceinvoke v.<java.util.Queue: boolean add(java.lang.Object)>(v);
return v;
}
public long pendingTimeouts()
{
io.netty.util.HashedWheelTimer v;
java.util.concurrent.atomic.AtomicLong v;
long v;
v := @this: io.netty.util.HashedWheelTimer;
v = v.<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicLong pendingTimeouts>;
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicLong: long get()>();
return v;
}
private static void reportTooManyInstances()
{
io.netty.util.internal.logging.InternalLogger v, v;
java.lang.String v, v;
boolean v;
v = <io.netty.util.HashedWheelTimer: io.netty.util.internal.logging.InternalLogger logger>;
v = interfaceinvoke v.<io.netty.util.internal.logging.InternalLogger: boolean isErrorEnabled()>();
if v == 0 goto label;
v = staticinvoke <io.netty.util.internal.StringUtil: java.lang.String simpleClassName(java.lang.Class)>(class "Lio/netty/util/HashedWheelTimer;");
v = <io.netty.util.HashedWheelTimer: io.netty.util.internal.logging.InternalLogger logger>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("You are creating too many \u instances. \u is a shared resource that must be reused across the JVM, so that only a few instances are created.");
interfaceinvoke v.<io.netty.util.internal.logging.InternalLogger: void error(java.lang.String)>(v);
label:
return;
}
static void <clinit>()
{
java.util.concurrent.atomic.AtomicIntegerFieldUpdater v;
java.util.concurrent.atomic.AtomicBoolean v;
long v;
io.netty.util.ResourceLeakDetector v;
java.util.concurrent.TimeUnit v;
java.util.concurrent.atomic.AtomicInteger v;
io.netty.util.internal.logging.InternalLogger v;
io.netty.util.ResourceLeakDetectorFactory v;
java.lang.Class v;
boolean v, v;
v = class "Lio/netty/util/HashedWheelTimer;";
v = virtualinvoke v.<java.lang.Class: boolean desiredAssertionStatus()>();
if v != 0 goto label;
v = 1;
goto label;
label:
v = 0;
label:
<io.netty.util.HashedWheelTimer: boolean $assertionsDisabled> = v;
v = staticinvoke <io.netty.util.internal.logging.InternalLoggerFactory: io.netty.util.internal.logging.InternalLogger getInstance(java.lang.Class)>(class "Lio/netty/util/HashedWheelTimer;");
<io.netty.util.HashedWheelTimer: io.netty.util.internal.logging.InternalLogger logger> = v;
v = new java.util.concurrent.atomic.AtomicInteger;
specialinvoke v.<java.util.concurrent.atomic.AtomicInteger: void <init>()>();
<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicInteger INSTANCE_COUNTER> = v;
v = new java.util.concurrent.atomic.AtomicBoolean;
specialinvoke v.<java.util.concurrent.atomic.AtomicBoolean: void <init>()>();
<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicBoolean WARNED_TOO_MANY_INSTANCES> = v;
v = <java.util.concurrent.TimeUnit: java.util.concurrent.TimeUnit MILLISECONDS>;
v = virtualinvoke v.<java.util.concurrent.TimeUnit: long toNanos(long)>(1L);
<io.netty.util.HashedWheelTimer: long MILLISECOND_NANOS> = v;
v = staticinvoke <io.netty.util.ResourceLeakDetectorFactory: io.netty.util.ResourceLeakDetectorFactory instance()>();
v = virtualinvoke v.<io.netty.util.ResourceLeakDetectorFactory: io.netty.util.ResourceLeakDetector newResourceLeakDetector(java.lang.Class,int)>(class "Lio/netty/util/HashedWheelTimer;", 1);
<io.netty.util.HashedWheelTimer: io.netty.util.ResourceLeakDetector leakDetector> = v;
v = staticinvoke <java.util.concurrent.atomic.AtomicIntegerFieldUpdater: java.util.concurrent.atomic.AtomicIntegerFieldUpdater newUpdater(java.lang.Class,java.lang.String)>(class "Lio/netty/util/HashedWheelTimer;", "workerState");
<io.netty.util.HashedWheelTimer: java.util.concurrent.atomic.AtomicIntegerFieldUpdater WORKER_STATE_UPDATER> = v;
return;
}
}