public final class jdk.internal.net.http.common.SequentialScheduler
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.common.SequentialScheduler
super_class: java.lang.Object
{
private static final int OFFLOAD;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int AGAIN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int BEGIN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final int STOP;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8
private static final int END;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
private final java.util.concurrent.atomic.AtomicInteger state;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.common.SequentialScheduler$RestartableTask restartableTask;
descriptor: Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter completer;
descriptor: Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.common.SequentialScheduler$SchedulableTask schedulableTask;
descriptor: Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(jdk.internal.net.http.common.SequentialScheduler$RestartableTask);
descriptor: (Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
bipush 16
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.net.http.common.SequentialScheduler$RestartableTask
putfield jdk.internal.net.http.common.SequentialScheduler.restartableTask:Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;
3: aload 0
new jdk.internal.net.http.common.SequentialScheduler$TryEndDeferredCompleter
dup
aload 0
invokespecial jdk.internal.net.http.common.SequentialScheduler$TryEndDeferredCompleter.<init>:(Ljdk/internal/net/http/common/SequentialScheduler;)V
putfield jdk.internal.net.http.common.SequentialScheduler.completer:Ljdk/internal/net/http/common/SequentialScheduler$DeferredCompleter;
4: aload 0
new jdk.internal.net.http.common.SequentialScheduler$SchedulableTask
dup
aload 0
invokespecial jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.<init>:(Ljdk/internal/net/http/common/SequentialScheduler;)V
putfield jdk.internal.net.http.common.SequentialScheduler.schedulableTask:Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/common/SequentialScheduler;
0 6 1 restartableTask Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;
MethodParameters:
Name Flags
restartableTask
public void runOrSchedule();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.schedulableTask:Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;
aconst_null
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:(Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;Ljava/util/concurrent/Executor;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/common/SequentialScheduler;
public void runOrSchedule(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.schedulableTask:Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;
aload 1
invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:(Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;Ljava/util/concurrent/Executor;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/common/SequentialScheduler;
0 2 1 executor Ljava/util/concurrent/Executor;
MethodParameters:
Name Flags
executor
private void runOrSchedule(jdk.internal.net.http.common.SequentialScheduler$SchedulableTask, java.util.concurrent.Executor);
descriptor: (Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;Ljava/util/concurrent/Executor;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 3
start local 3 1: iload 3
bipush 16
if_icmpne 4
2: aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
bipush 16
iconst_4
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 0
3: goto 10
4: StackMap locals: int
StackMap stack:
iload 3
iconst_4
iand
ifeq 7
5: aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
iload 3
iconst_2
iload 3
iconst_1
iand
ior
invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
ifeq 0
6: return
7: StackMap locals:
StackMap stack:
iload 3
iconst_2
iand
ifne 8
iload 3
bipush 8
if_icmpne 9
8: StackMap locals:
StackMap stack:
return
9: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
iload 3
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 3 10: StackMap locals:
StackMap stack:
aload 2
ifnonnull 13
11: aload 1
invokevirtual jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run:()V
12: goto 14
13: StackMap locals:
StackMap stack:
aload 2
aload 1
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
14: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/net/http/common/SequentialScheduler;
0 15 1 task Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;
0 15 2 executor Ljava/util/concurrent/Executor;
1 10 3 s I
MethodParameters:
Name Flags
task
executor
public boolean isStopped();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
bipush 8
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/common/SequentialScheduler;
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
bipush 8
invokevirtual java.util.concurrent.atomic.AtomicInteger.set:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/common/SequentialScheduler;
public static jdk.internal.net.http.common.SequentialScheduler synchronizedScheduler(java.lang.Runnable);
descriptor: (Ljava/lang/Runnable;)Ljdk/internal/net/http/common/SequentialScheduler;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new jdk.internal.net.http.common.SequentialScheduler
dup
new jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask
dup
aload 0
invokespecial jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask.<init>:(Ljava/lang/Runnable;)V
invokespecial jdk.internal.net.http.common.SequentialScheduler.<init>:(Ljdk/internal/net/http/common/SequentialScheduler$RestartableTask;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 mainLoop Ljava/lang/Runnable;
MethodParameters:
Name Flags
mainLoop
}
SourceFile: "SequentialScheduler.java"
NestMembers:
jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter jdk.internal.net.http.common.SequentialScheduler$RestartableTask jdk.internal.net.http.common.SequentialScheduler$SchedulableTask jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask jdk.internal.net.http.common.SequentialScheduler$TryEndDeferredCompleter
InnerClasses:
public abstract CompleteRestartableTask = jdk.internal.net.http.common.SequentialScheduler$CompleteRestartableTask of jdk.internal.net.http.common.SequentialScheduler
public abstract DeferredCompleter = jdk.internal.net.http.common.SequentialScheduler$DeferredCompleter of jdk.internal.net.http.common.SequentialScheduler
public abstract RestartableTask = jdk.internal.net.http.common.SequentialScheduler$RestartableTask of jdk.internal.net.http.common.SequentialScheduler
private final SchedulableTask = jdk.internal.net.http.common.SequentialScheduler$SchedulableTask of jdk.internal.net.http.common.SequentialScheduler
public final SynchronizedRestartableTask = jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask of jdk.internal.net.http.common.SequentialScheduler
private TryEndDeferredCompleter = jdk.internal.net.http.common.SequentialScheduler$TryEndDeferredCompleter of jdk.internal.net.http.common.SequentialScheduler