final class jdk.internal.net.http.WindowController
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.net.http.WindowController
  super_class: java.lang.Object
{
  static final jdk.internal.net.http.common.Logger debug;
    descriptor: Ljdk/internal/net/http/common/Logger;
    flags: (0x0018) ACC_STATIC, ACC_FINAL

  private static final int DEFAULT_INITIAL_WINDOW_SIZE;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 65535

  private int connectionWindowSize;
    descriptor: I
    flags: (0x0002) ACC_PRIVATE

  private final java.util.Map<java.lang.Integer, java.lang.Integer> streams;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/Integer;>;

  private final java.util.Map<java.lang.Integer, java.util.Map$Entry<jdk.internal.net.http.Stream<?>, java.lang.Integer>> pending;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/Map$Entry<Ljdk/internal/net/http/Stream<*>;Ljava/lang/Integer;>;>;

  private final java.util.concurrent.locks.ReentrantLock controllerLock;
    descriptor: Ljava/util/concurrent/locks/ReentrantLock;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  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: .line 52
            ldc Ljdk/internal/net/http/WindowController;
            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 jdk.internal.net.http.WindowController.$assertionsDisabled:Z
         3: .line 55
            ldc "WindowController"
            dup
            invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
            pop
            invokedynamic get(Ljava/lang/String;)Ljava/util/function/Supplier;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  ()Ljava/lang/Object;
                  java/lang/String.toString()Ljava/lang/String; (5)
                  ()Ljava/lang/String;
            getstatic jdk.internal.net.http.common.Utils.DEBUG:Z
            invokestatic jdk.internal.net.http.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
         4: .line 54
            putstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
         5: .line 60
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // jdk.internal.net.http.WindowController this
         0: .line 76
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 66
            aload 0 /* this */
            new java.util.HashMap
            dup
            invokespecial java.util.HashMap.<init>:()V
            putfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
         2: .line 70
            aload 0 /* this */
         3: .line 71
            new java.util.LinkedHashMap
            dup
            invokespecial java.util.LinkedHashMap.<init>:()V
            putfield jdk.internal.net.http.WindowController.pending:Ljava/util/Map;
         4: .line 73
            aload 0 /* this */
            new java.util.concurrent.locks.ReentrantLock
            dup
            invokespecial java.util.concurrent.locks.ReentrantLock.<init>:()V
            putfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
         5: .line 77
            aload 0 /* this */
            ldc 65535
            putfield jdk.internal.net.http.WindowController.connectionWindowSize:I
         6: .line 78
            return
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Ljdk/internal/net/http/WindowController;

  void registerStream(int, int);
    descriptor: (II)V
    flags: (0x0000) 
    Code:
      stack=5, locals=5, args_size=3
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int streamid
        start local 2 // int initialStreamWindowSize
         0: .line 87
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 89
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 1 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            iload 2 /* initialStreamWindowSize */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 3 /* old */
        start local 3 // java.lang.Integer old
         2: .line 90
            aload 3 /* old */
            ifnull 9
         3: .line 91
            new java.lang.InternalError
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unexpected entry ["
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         4: .line 92
            aload 3 /* old */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc "] for streamid: "
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            iload 1 /* streamid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         5: .line 91
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
        end local 3 // java.lang.Integer old
         6: .line 93
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 4
         7: .line 94
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         8: .line 95
            aload 4
            athrow
         9: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        10: .line 96
            return
        end local 2 // int initialStreamWindowSize
        end local 1 // int streamid
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot                     Name  Signature
            0   11     0                     this  Ljdk/internal/net/http/WindowController;
            0   11     1                 streamid  I
            0   11     2  initialStreamWindowSize  I
            2    6     3                      old  Ljava/lang/Integer;
      Exception table:
        from    to  target  type
           1     6       6  any
    MethodParameters:
                         Name  Flags
      streamid                 
      initialStreamWindowSize  

  void removeStream(int);
    descriptor: (I)V
    flags: (0x0000) 
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int streamid
         0: .line 100
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 102
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 1 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 2 /* old */
        start local 2 // java.lang.Integer old
         2: .line 106
            iload 1 /* streamid */
            iconst_1
            iand
            iconst_1
            if_icmpne 3
            iconst_1
            goto 4
      StackMap locals: java.lang.Integer
      StackMap stack:
         3: iconst_0
      StackMap locals:
      StackMap stack: int
         4: istore 3 /* isClientStream */
        start local 3 // boolean isClientStream
         5: .line 107
            aload 2 /* old */
            ifnonnull 7
            iload 3 /* isClientStream */
            ifeq 7
         6: .line 108
            new java.lang.InternalError
            dup
            new java.lang.StringBuilder
            dup
            ldc "Expected entry for streamid: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* streamid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 109
      StackMap locals: int
      StackMap stack:
            aload 2 /* old */
            ifnull 12
            iload 3 /* isClientStream */
            ifne 12
         8: .line 110
            new java.lang.InternalError
            dup
            new java.lang.StringBuilder
            dup
            ldc "Unexpected entry for streamid: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* streamid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
        end local 3 // boolean isClientStream
        end local 2 // java.lang.Integer old
         9: .line 112
      StackMap locals: jdk.internal.net.http.WindowController int
      StackMap stack: java.lang.Throwable
            astore 4
        10: .line 113
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        11: .line 114
            aload 4
            athrow
        12: .line 113
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        13: .line 115
            return
        end local 1 // int streamid
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot            Name  Signature
            0   14     0            this  Ljdk/internal/net/http/WindowController;
            0   14     1        streamid  I
            2    9     2             old  Ljava/lang/Integer;
            5    9     3  isClientStream  Z
      Exception table:
        from    to  target  type
           1     9       9  any
    MethodParameters:
          Name  Flags
      streamid  

  int tryAcquire(int, int, jdk.internal.net.http.Stream<?>);
    descriptor: (IILjdk/internal/net/http/Stream;)I
    flags: (0x0000) 
    Code:
      stack=7, locals=8, args_size=4
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int requestAmount
        start local 2 // int streamid
        start local 3 // jdk.internal.net.http.Stream stream
         0: .line 134
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 136
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 4 /* streamSize */
        start local 4 // java.lang.Integer streamSize
         2: .line 137
            aload 4 /* streamSize */
            ifnonnull 6
         3: .line 138
            new java.lang.InternalError
            dup
            new java.lang.StringBuilder
            dup
            ldc "Expected entry for streamid: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         4: .line 139
            iload 2 /* streamid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         5: .line 138
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 140
      StackMap locals: java.lang.Integer
      StackMap stack:
            iload 1 /* requestAmount */
         7: .line 141
            aload 4 /* streamSize */
            invokevirtual java.lang.Integer.intValue:()I
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            invokestatic java.lang.Math.min:(II)I
         8: .line 140
            invokestatic java.lang.Math.min:(II)I
            istore 5 /* x */
        start local 5 // int x
         9: .line 143
            iload 5 /* x */
            ifgt 19
        10: .line 144
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            invokeinterface jdk.internal.net.http.common.Logger.on:()Z
            ifeq 15
        11: .line 145
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            ldc "Stream %d requesting %d but only %d available (stream: %d, connection: %d)"
            iconst_5
            anewarray java.lang.Object
            dup
            iconst_0
        12: .line 146
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iload 1 /* requestAmount */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            aload 4 /* streamSize */
            invokevirtual java.lang.Integer.intValue:()I
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            invokestatic java.lang.Math.min:(II)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
        13: .line 147
            aload 4 /* streamSize */
            aastore
            dup
            iconst_4
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        14: .line 145
            invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
        15: .line 150
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.pending:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 3 /* stream */
            iload 1 /* requestAmount */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokestatic java.util.Map.entry:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map$Entry;
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        16: .line 151
            iload 5 /* x */
            istore 7
        17: .line 167
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        18: .line 151
            iload 7
            ireturn
        19: .line 155
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.pending:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
        20: .line 158
            aload 4 /* streamSize */
            invokevirtual java.lang.Integer.intValue:()I
            iload 5 /* x */
            isub
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            astore 4 /* streamSize */
        21: .line 159
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 4 /* streamSize */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        22: .line 160
            aload 0 /* this */
            dup
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            iload 5 /* x */
            isub
            putfield jdk.internal.net.http.WindowController.connectionWindowSize:I
        23: .line 161
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            invokeinterface jdk.internal.net.http.common.Logger.on:()Z
            ifeq 28
        24: .line 162
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            ldc "Stream %d amount allocated %d, now %d available (stream: %d, connection: %d)"
            iconst_5
            anewarray java.lang.Object
            dup
            iconst_0
        25: .line 163
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iload 5 /* x */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_2
            aload 4 /* streamSize */
            invokevirtual java.lang.Integer.intValue:()I
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            invokestatic java.lang.Math.min:(II)I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_3
        26: .line 164
            aload 4 /* streamSize */
            aastore
            dup
            iconst_4
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        27: .line 162
            invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
        28: .line 165
      StackMap locals:
      StackMap stack:
            iload 5 /* x */
            istore 7
        29: .line 167
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        30: .line 165
            iload 7
            ireturn
        end local 5 // int x
        end local 4 // java.lang.Integer streamSize
        31: .line 166
      StackMap locals: jdk.internal.net.http.WindowController int int jdk.internal.net.http.Stream
      StackMap stack: java.lang.Throwable
            astore 6
        32: .line 167
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        33: .line 168
            aload 6
            athrow
        end local 3 // jdk.internal.net.http.Stream stream
        end local 2 // int streamid
        end local 1 // int requestAmount
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0   34     0           this  Ljdk/internal/net/http/WindowController;
            0   34     1  requestAmount  I
            0   34     2       streamid  I
            0   34     3         stream  Ljdk/internal/net/http/Stream<*>;
            2   31     4     streamSize  Ljava/lang/Integer;
            9   31     5              x  I
      Exception table:
        from    to  target  type
           1    17      31  any
          19    29      31  any
    Signature: (IILjdk/internal/net/http/Stream<*>;)I
    MethodParameters:
               Name  Flags
      requestAmount  
      streamid       
      stream         

  boolean increaseConnectionWindow(int);
    descriptor: (I)Z
    flags: (0x0000) 
    Code:
      stack=6, locals=11, args_size=2
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int amount
         0: .line 182
            aconst_null
            astore 2 /* candidates */
        start local 2 // java.util.List candidates
         1: .line 183
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         2: .line 185
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            istore 3 /* size */
        start local 3 // int size
         3: .line 186
            iload 3 /* size */
            iload 1 /* amount */
            iadd
            istore 3 /* size */
         4: .line 187
            iload 3 /* size */
            ifge 7
         5: .line 220
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         6: .line 188
            iconst_0
            ireturn
         7: .line 189
      StackMap locals: java.util.List int
      StackMap stack:
            aload 0 /* this */
            iload 3 /* size */
            putfield jdk.internal.net.http.WindowController.connectionWindowSize:I
         8: .line 190
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            invokeinterface jdk.internal.net.http.common.Logger.on:()Z
            ifeq 12
         9: .line 191
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            ldc "Connection window size is now %d (amount added %d)"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
        10: .line 192
            iload 3 /* size */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            iload 1 /* amount */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        11: .line 191
            invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
        12: .line 197
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.pending:Ljava/util/Map;
            invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
        13: .line 196
            astore 4 /* iter */
        start local 4 // java.util.Iterator iter
        14: .line 199
            goto 29
        15: .line 200
      StackMap locals: java.util.Iterator
      StackMap stack:
            aload 4 /* iter */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 5 /* item */
        start local 5 // java.util.Map$Entry item
        16: .line 201
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            aload 5 /* item */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 6 /* streamSize */
        start local 6 // java.lang.Integer streamSize
        17: .line 202
            aload 6 /* streamSize */
            ifnonnull 20
        18: .line 203
            aload 4 /* iter */
            invokeinterface java.util.Iterator.remove:()V
        19: .line 204
            goto 29
        20: .line 205
      StackMap locals: java.util.Map$Entry java.lang.Integer
      StackMap stack:
            aload 5 /* item */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 7 /* e */
        start local 7 // java.util.Map$Entry e
        21: .line 206
            aload 7 /* e */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            istore 8 /* requestedAmount */
        start local 8 // int requestedAmount
        22: .line 209
            iconst_1
            istore 9 /* minAmount */
        start local 9 // int minAmount
        23: .line 210
            iload 3 /* size */
            iload 9 /* minAmount */
            if_icmplt 29
            aload 6 /* streamSize */
            invokevirtual java.lang.Integer.intValue:()I
            iload 9 /* minAmount */
            if_icmplt 29
        24: .line 211
            iload 3 /* size */
            aload 6 /* streamSize */
            invokevirtual java.lang.Integer.intValue:()I
            iload 8 /* requestedAmount */
            invokestatic java.lang.Math.min:(II)I
            isub
            istore 3 /* size */
        25: .line 212
            aload 4 /* iter */
            invokeinterface java.util.Iterator.remove:()V
        26: .line 213
            aload 2 /* candidates */
            ifnonnull 28
        27: .line 214
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            astore 2 /* candidates */
        28: .line 215
      StackMap locals: java.util.Map$Entry int int
      StackMap stack:
            aload 2 /* candidates */
            aload 7 /* e */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            checkcast jdk.internal.net.http.Stream
            invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
            pop
        end local 9 // int minAmount
        end local 8 // int requestedAmount
        end local 7 // java.util.Map$Entry e
        end local 6 // java.lang.Integer streamSize
        end local 5 // java.util.Map$Entry item
        29: .line 199
      StackMap locals: jdk.internal.net.http.WindowController int java.util.List int java.util.Iterator
      StackMap stack:
            aload 4 /* iter */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifeq 34
            iload 3 /* size */
            ifgt 15
        end local 4 // java.util.Iterator iter
        end local 3 // int size
        30: .line 219
            goto 34
      StackMap locals: jdk.internal.net.http.WindowController int java.util.List
      StackMap stack: java.lang.Throwable
        31: astore 10
        32: .line 220
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        33: .line 221
            aload 10
            athrow
        34: .line 220
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        35: .line 222
            aload 2 /* candidates */
            ifnull 37
        36: .line 223
            aload 2 /* candidates */
            invokedynamic accept()Ljava/util/function/Consumer;
              Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
                Method arguments:
                  (Ljava/lang/Object;)V
                  jdk/internal/net/http/Stream.signalWindowUpdate()V (5)
                  (Ljdk/internal/net/http/Stream;)V
            invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
        37: .line 225
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 2 // java.util.List candidates
        end local 1 // int amount
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot             Name  Signature
            0   38     0             this  Ljdk/internal/net/http/WindowController;
            0   38     1           amount  I
            1   38     2       candidates  Ljava/util/List<Ljdk/internal/net/http/Stream<*>;>;
            3   30     3             size  I
           14   30     4             iter  Ljava/util/Iterator<Ljava/util/Map$Entry<Ljava/lang/Integer;Ljava/util/Map$Entry<Ljdk/internal/net/http/Stream<*>;Ljava/lang/Integer;>;>;>;
           16   29     5             item  Ljava/util/Map$Entry<Ljava/lang/Integer;Ljava/util/Map$Entry<Ljdk/internal/net/http/Stream<*>;Ljava/lang/Integer;>;>;
           17   29     6       streamSize  Ljava/lang/Integer;
           21   29     7                e  Ljava/util/Map$Entry<Ljdk/internal/net/http/Stream<*>;Ljava/lang/Integer;>;
           22   29     8  requestedAmount  I
           23   29     9        minAmount  I
      Exception table:
        from    to  target  type
           2     5      31  any
           7    31      31  any
    MethodParameters:
        Name  Flags
      amount  

  boolean increaseStreamWindow(int, int);
    descriptor: (II)Z
    flags: (0x0000) 
    Code:
      stack=6, locals=9, args_size=3
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int amount
        start local 2 // int streamid
         0: .line 239
            aconst_null
            astore 3 /* s */
        start local 3 // jdk.internal.net.http.Stream s
         1: .line 240
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         2: .line 242
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 4 /* size */
        start local 4 // java.lang.Integer size
         3: .line 243
            aload 4 /* size */
            ifnonnull 9
         4: .line 245
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            invokeinterface jdk.internal.net.http.common.Logger.on:()Z
            ifeq 30
         5: .line 246
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            ldc "WARNING: No entry found for streamid: %s. May be cancelled?"
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
         6: .line 247
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
         7: .line 246
            invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
         8: .line 248
            goto 30
         9: .line 249
      StackMap locals: jdk.internal.net.http.Stream java.lang.Integer
      StackMap stack:
            aload 4 /* size */
            invokevirtual java.lang.Integer.intValue:()I
            istore 5 /* prev */
        start local 5 // int prev
        10: .line 250
            iload 5 /* prev */
            iload 1 /* amount */
            iadd
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            astore 4 /* size */
        11: .line 251
            aload 4 /* size */
            invokevirtual java.lang.Integer.intValue:()I
            iload 5 /* prev */
            if_icmpge 14
        12: .line 271
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        13: .line 252
            iconst_0
            ireturn
        14: .line 253
      StackMap locals: int
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 4 /* size */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
        15: .line 254
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            invokeinterface jdk.internal.net.http.common.Logger.on:()Z
            ifeq 19
        16: .line 255
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            ldc "Stream %s window size is now %s (amount added %d)"
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
        17: .line 256
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 4 /* size */
            aastore
            dup
            iconst_2
            iload 1 /* amount */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        18: .line 255
            invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
        19: .line 258
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.pending:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 6 /* p */
        start local 6 // java.util.Map$Entry p
        20: .line 259
            aload 6 /* p */
            ifnull 30
        21: .line 260
            iconst_1
            istore 7 /* minAmount */
        start local 7 // int minAmount
        22: .line 263
            aload 4 /* size */
            invokevirtual java.lang.Integer.intValue:()I
            iload 7 /* minAmount */
            if_icmplt 30
        23: .line 264
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            iload 7 /* minAmount */
            if_icmplt 30
        24: .line 265
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.pending:Ljava/util/Map;
            iload 2 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
            pop
        25: .line 266
            aload 6 /* p */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            checkcast jdk.internal.net.http.Stream
            astore 3 /* s */
        end local 7 // int minAmount
        end local 6 // java.util.Map$Entry p
        end local 5 // int prev
        end local 4 // java.lang.Integer size
        26: .line 270
            goto 30
      StackMap locals: jdk.internal.net.http.WindowController int int jdk.internal.net.http.Stream
      StackMap stack: java.lang.Throwable
        27: astore 8
        28: .line 271
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        29: .line 272
            aload 8
            athrow
        30: .line 271
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        31: .line 274
            aload 3 /* s */
            ifnull 33
        32: .line 275
            aload 3 /* s */
            invokevirtual jdk.internal.net.http.Stream.signalWindowUpdate:()V
        33: .line 277
      StackMap locals:
      StackMap stack:
            iconst_1
            ireturn
        end local 3 // jdk.internal.net.http.Stream s
        end local 2 // int streamid
        end local 1 // int amount
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0   34     0       this  Ljdk/internal/net/http/WindowController;
            0   34     1     amount  I
            0   34     2   streamid  I
            1   34     3          s  Ljdk/internal/net/http/Stream<*>;
            3   26     4       size  Ljava/lang/Integer;
           10   26     5       prev  I
           20   26     6          p  Ljava/util/Map$Entry<Ljdk/internal/net/http/Stream<*>;Ljava/lang/Integer;>;
           22   26     7  minAmount  I
      Exception table:
        from    to  target  type
           2    12      27  any
          14    27      27  any
    MethodParameters:
          Name  Flags
      amount    
      streamid  

  void adjustActiveStreams(int);
    descriptor: (I)V
    flags: (0x0000) 
    Code:
      stack=6, locals=7, args_size=2
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int adjustAmount
         0: .line 286
            getstatic jdk.internal.net.http.WindowController.$assertionsDisabled:Z
            ifne 1
            iload 1 /* adjustAmount */
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 288
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         2: .line 290
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 3
            goto 13
      StackMap locals: jdk.internal.net.http.WindowController int top java.util.Iterator
      StackMap stack:
         3: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.util.Map$Entry
            astore 2 /* entry */
        start local 2 // java.util.Map$Entry entry
         4: .line 291
            aload 2 /* entry */
            invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            istore 4 /* streamid */
        start local 4 // int streamid
         5: .line 294
            iload 4 /* streamid */
            ifeq 13
            iload 4 /* streamid */
            iconst_2
            irem
            ifeq 13
         6: .line 295
            aload 2 /* entry */
            invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 5 /* size */
        start local 5 // java.lang.Integer size
         7: .line 296
            aload 5 /* size */
            invokevirtual java.lang.Integer.intValue:()I
            iload 1 /* adjustAmount */
            iadd
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            astore 5 /* size */
         8: .line 297
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 4 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aload 5 /* size */
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         9: .line 298
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            invokeinterface jdk.internal.net.http.common.Logger.on:()Z
            ifeq 13
        10: .line 299
            getstatic jdk.internal.net.http.WindowController.debug:Ljdk/internal/net/http/common/Logger;
            ldc "Stream %s window size is now %s (adjusting amount %d)"
            iconst_3
            anewarray java.lang.Object
            dup
            iconst_0
        11: .line 300
            iload 4 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 5 /* size */
            aastore
            dup
            iconst_2
            iload 1 /* adjustAmount */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
        12: .line 299
            invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
        end local 5 // java.lang.Integer size
        end local 4 // int streamid
        end local 2 // java.util.Map$Entry entry
        13: .line 290
      StackMap locals:
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 3
        14: .line 303
            goto 18
      StackMap locals: jdk.internal.net.http.WindowController int
      StackMap stack: java.lang.Throwable
        15: astore 6
        16: .line 304
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        17: .line 305
            aload 6
            athrow
        18: .line 304
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
        19: .line 306
            return
        end local 1 // int adjustAmount
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0   20     0          this  Ljdk/internal/net/http/WindowController;
            0   20     1  adjustAmount  I
            4   13     2         entry  Ljava/util/Map$Entry<Ljava/lang/Integer;Ljava/lang/Integer;>;
            5   13     4      streamid  I
            7   13     5          size  Ljava/lang/Integer;
      Exception table:
        from    to  target  type
           2    15      15  any
    MethodParameters:
              Name  Flags
      adjustAmount  

  int connectionWindowSize();
    descriptor: ()I
    flags: (0x0000) 
    Code:
      stack=1, locals=3, args_size=1
        start local 0 // jdk.internal.net.http.WindowController this
         0: .line 310
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 312
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.connectionWindowSize:I
            istore 2
         2: .line 314
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         3: .line 312
            iload 2
            ireturn
         4: .line 313
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 1
         5: .line 314
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         6: .line 315
            aload 1
            athrow
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Ljdk/internal/net/http/WindowController;
      Exception table:
        from    to  target  type
           1     2       4  any

  int streamWindowSize(int);
    descriptor: (I)I
    flags: (0x0000) 
    Code:
      stack=5, locals=5, args_size=2
        start local 0 // jdk.internal.net.http.WindowController this
        start local 1 // int streamid
         0: .line 320
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.lock:()V
         1: .line 322
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.streams:Ljava/util/Map;
            iload 1 /* streamid */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast java.lang.Integer
            astore 2 /* size */
        start local 2 // java.lang.Integer size
         2: .line 323
            aload 2 /* size */
            ifnonnull 4
         3: .line 324
            new java.lang.InternalError
            dup
            new java.lang.StringBuilder
            dup
            ldc "Expected entry for streamid: "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            iload 1 /* streamid */
            invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 325
      StackMap locals: java.lang.Integer
      StackMap stack:
            aload 2 /* size */
            invokevirtual java.lang.Integer.intValue:()I
            istore 4
         5: .line 327
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         6: .line 325
            iload 4
            ireturn
        end local 2 // java.lang.Integer size
         7: .line 326
      StackMap locals: jdk.internal.net.http.WindowController int
      StackMap stack: java.lang.Throwable
            astore 3
         8: .line 327
            aload 0 /* this */
            getfield jdk.internal.net.http.WindowController.controllerLock:Ljava/util/concurrent/locks/ReentrantLock;
            invokevirtual java.util.concurrent.locks.ReentrantLock.unlock:()V
         9: .line 328
            aload 3
            athrow
        end local 1 // int streamid
        end local 0 // jdk.internal.net.http.WindowController this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   10     0      this  Ljdk/internal/net/http/WindowController;
            0   10     1  streamid  I
            2    7     2      size  Ljava/lang/Integer;
      Exception table:
        from    to  target  type
           1     5       7  any
    MethodParameters:
          Name  Flags
      streamid  
}
SourceFile: "WindowController.java"
InnerClasses:
  public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
  public abstract Entry = java.util.Map$Entry of java.util.Map