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 // jdk.internal.net.http.common.SequentialScheduler this
        start local 1 // jdk.internal.net.http.common.SequentialScheduler$RestartableTask restartableTask
         0: .line 202
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 186
            aload 0 /* this */
            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: .line 203
            aload 0 /* this */
            aload 1 /* restartableTask */
            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: .line 204
            aload 0 /* this */
            new jdk.internal.net.http.common.SequentialScheduler$TryEndDeferredCompleter
            dup
            aload 0 /* this */
            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: .line 205
            aload 0 /* this */
            new jdk.internal.net.http.common.SequentialScheduler$SchedulableTask
            dup
            aload 0 /* this */
            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: .line 206
            return
        end local 1 // jdk.internal.net.http.common.SequentialScheduler$RestartableTask restartableTask
        end local 0 // jdk.internal.net.http.common.SequentialScheduler this
      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 // jdk.internal.net.http.common.SequentialScheduler this
         0: .line 224
            aload 0 /* this */
            aload 0 /* this */
            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: .line 225
            return
        end local 0 // jdk.internal.net.http.common.SequentialScheduler this
      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 // jdk.internal.net.http.common.SequentialScheduler this
        start local 1 // java.util.concurrent.Executor executor
         0: .line 242
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.net.http.common.SequentialScheduler.schedulableTask:Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;
            aload 1 /* executor */
            invokevirtual jdk.internal.net.http.common.SequentialScheduler.runOrSchedule:(Ljdk/internal/net/http/common/SequentialScheduler$SchedulableTask;Ljava/util/concurrent/Executor;)V
         1: .line 243
            return
        end local 1 // java.util.concurrent.Executor executor
        end local 0 // jdk.internal.net.http.common.SequentialScheduler this
      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 // jdk.internal.net.http.common.SequentialScheduler this
        start local 1 // jdk.internal.net.http.common.SequentialScheduler$SchedulableTask task
        start local 2 // java.util.concurrent.Executor executor
         0: .line 247
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
            invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
            istore 3 /* s */
        start local 3 // int s
         1: .line 248
            iload 3 /* s */
            bipush 16
            if_icmpne 4
         2: .line 249
            aload 0 /* this */
            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: .line 250
            goto 10
         4: .line 252
      StackMap locals: int
      StackMap stack:
            iload 3 /* s */
            iconst_4
            iand
            ifeq 7
         5: .line 254
            aload 0 /* this */
            getfield jdk.internal.net.http.common.SequentialScheduler.state:Ljava/util/concurrent/atomic/AtomicInteger;
            iload 3 /* s */
            iconst_2
            iload 3 /* s */
            iconst_1
            iand
            ior
            invokevirtual java.util.concurrent.atomic.AtomicInteger.compareAndSet:(II)Z
            ifeq 0
         6: .line 255
            return
         7: .line 257
      StackMap locals:
      StackMap stack:
            iload 3 /* s */
            iconst_2
            iand
            ifne 8
            iload 3 /* s */
            bipush 8
            if_icmpne 9
         8: .line 264
      StackMap locals:
      StackMap stack:
            return
         9: .line 267
      StackMap locals:
      StackMap stack:
            new java.lang.InternalError
            dup
            iload 3 /* s */
            invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
        end local 3 // int s
        10: .line 270
      StackMap locals:
      StackMap stack:
            aload 2 /* executor */
            ifnonnull 13
        11: .line 271
            aload 1 /* task */
            invokevirtual jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run:()V
        12: .line 272
            goto 14
        13: .line 273
      StackMap locals:
      StackMap stack:
            aload 2 /* executor */
            aload 1 /* task */
            invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
        14: .line 275
      StackMap locals:
      StackMap stack:
            return
        end local 2 // java.util.concurrent.Executor executor
        end local 1 // jdk.internal.net.http.common.SequentialScheduler$SchedulableTask task
        end local 0 // jdk.internal.net.http.common.SequentialScheduler this
      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 // jdk.internal.net.http.common.SequentialScheduler this
         0: .line 332
            aload 0 /* this */
            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 // jdk.internal.net.http.common.SequentialScheduler this
      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 // jdk.internal.net.http.common.SequentialScheduler this
         0: .line 344
            aload 0 /* this */
            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: .line 345
            return
        end local 0 // jdk.internal.net.http.common.SequentialScheduler this
      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 // java.lang.Runnable mainLoop
         0: .line 360
            new jdk.internal.net.http.common.SequentialScheduler
            dup
            new jdk.internal.net.http.common.SequentialScheduler$SynchronizedRestartableTask
            dup
            aload 0 /* mainLoop */
            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 // java.lang.Runnable mainLoop
      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