final class jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer<E>
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer
  super_class: java.lang.Object
{
  int tail;
    descriptor: I
    flags: (0x0000) 

  int head;
    descriptor: I
    flags: (0x0000) 

  int size;
    descriptor: I
    flags: (0x0000) 

  int capacity;
    descriptor: I
    flags: (0x0000) 

  java.lang.Object[] elements;
    descriptor: [Ljava/lang/Object;
    flags: (0x0000) 

  void <init>(int);
    descriptor: (I)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
        start local 1 // int capacity
         0: .line 293
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 294
            aload 0 /* this */
            iload 1 /* capacity */
            invokestatic jdk.internal.net.http.common.Utils.pow2Size:(I)I
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
         2: .line 295
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            anewarray java.lang.Object
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
         3: .line 296
            return
        end local 1 // int capacity
        end local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    4     0      this  Ljdk/internal/net/http/hpack/SimpleHeaderTable$CircularBuffer<TE;>;
            0    4     1  capacity  I
    MethodParameters:
          Name  Flags
      capacity  

  void add();
    descriptor: (Ljava/lang/Object;)V
    flags: (0x0000) 
    Code:
      stack=7, locals=2, args_size=2
        start local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
        start local 1 // java.lang.Object elem
         0: .line 299
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            if_icmpne 4
         1: .line 300
            new java.lang.IllegalStateException
            dup
         2: .line 301
            ldc "No room for '%s': capacity=%s"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* elem */
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
         3: .line 300
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         4: .line 303
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.head:I
            aload 1 /* elem */
            aastore
         5: .line 304
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.head:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            iconst_1
            isub
            iand
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.head:I
         6: .line 305
            aload 0 /* this */
            dup
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            iconst_1
            iadd
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
         7: .line 306
            return
        end local 1 // java.lang.Object elem
        end local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    8     0  this  Ljdk/internal/net/http/hpack/SimpleHeaderTable$CircularBuffer<TE;>;
            0    8     1  elem  TE;
    Signature: (TE;)V
    MethodParameters:
      Name  Flags
      elem  

  E remove();
    descriptor: ()Ljava/lang/Object;
    flags: (0x0000) 
    Code:
      stack=4, locals=2, args_size=1
        start local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
         0: .line 310
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            ifne 2
         1: .line 311
            new java.util.NoSuchElementException
            dup
            ldc "Empty"
            invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
            athrow
         2: .line 313
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            aaload
            astore 1 /* elem */
        start local 1 // java.lang.Object elem
         3: .line 314
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            aconst_null
            aastore
         4: .line 315
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            iconst_1
            iadd
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            iconst_1
            isub
            iand
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
         5: .line 316
            aload 0 /* this */
            dup
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            iconst_1
            isub
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
         6: .line 317
            aload 1 /* elem */
            areturn
        end local 1 // java.lang.Object elem
        end local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Ljdk/internal/net/http/hpack/SimpleHeaderTable$CircularBuffer<TE;>;
            3    7     1  elem  TE;
    Signature: ()TE;

  E get();
    descriptor: (I)Ljava/lang/Object;
    flags: (0x0000) 
    Code:
      stack=7, locals=3, args_size=2
        start local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
        start local 1 // int index
         0: .line 322
            iload 1 /* index */
            iflt 1
            iload 1 /* index */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            if_icmplt 6
         1: .line 323
      StackMap locals:
      StackMap stack:
            new java.lang.IndexOutOfBoundsException
            dup
         2: .line 324
            ldc "0 <= index <= capacity: index=%s, capacity=%s"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
         3: .line 325
            iload 1 /* index */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
         4: .line 324
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
         5: .line 323
            invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 327
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            iload 1 /* index */
            isub
            iconst_1
            isub
            iadd
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
            iconst_1
            isub
            iand
            istore 2 /* idx */
        start local 2 // int idx
         7: .line 328
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            iload 2 /* idx */
            aaload
            areturn
        end local 2 // int idx
        end local 1 // int index
        end local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    8     0   this  Ljdk/internal/net/http/hpack/SimpleHeaderTable$CircularBuffer<TE;>;
            0    8     1  index  I
            7    8     2    idx  I
    Signature: (I)TE;
    MethodParameters:
       Name  Flags
      index  

  public void resize(int);
    descriptor: (I)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=4, args_size=2
        start local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
        start local 1 // int newCapacity
         0: .line 332
            iload 1 /* newCapacity */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            if_icmpge 6
         1: .line 333
            new java.lang.IllegalStateException
            dup
         2: .line 334
            ldc "newCapacity >= size: newCapacity=%s, size=%s"
            iconst_2
            anewarray java.lang.Object
            dup
            iconst_0
         3: .line 335
            iload 1 /* newCapacity */
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
            dup
            iconst_1
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
            aastore
         4: .line 334
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
         5: .line 333
            invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
            athrow
         6: .line 338
      StackMap locals:
      StackMap stack:
            iload 1 /* newCapacity */
            invokestatic jdk.internal.net.http.common.Utils.pow2Size:(I)I
            istore 2 /* capacity */
        start local 2 // int capacity
         7: .line 339
            iload 2 /* capacity */
            anewarray java.lang.Object
            astore 3 /* newElements */
        start local 3 // java.lang.Object[] newElements
         8: .line 341
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.head:I
            if_icmplt 9
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            ifne 11
         9: .line 342
      StackMap locals: int java.lang.Object[]
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            aload 3 /* newElements */
            iconst_0
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        10: .line 343
            goto 13
        11: .line 344
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            aload 3 /* newElements */
            iconst_0
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            arraylength
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            isub
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        12: .line 345
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            iconst_0
            aload 3 /* newElements */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
            arraylength
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
            isub
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.head:I
            invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
        13: .line 348
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 3 /* newElements */
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.elements:[Ljava/lang/Object;
        14: .line 349
            aload 0 /* this */
            iconst_0
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.tail:I
        15: .line 350
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.size:I
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.head:I
        16: .line 351
            aload 0 /* this */
            iload 2 /* capacity */
            putfield jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer.capacity:I
        17: .line 352
            return
        end local 3 // java.lang.Object[] newElements
        end local 2 // int capacity
        end local 1 // int newCapacity
        end local 0 // jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   18     0         this  Ljdk/internal/net/http/hpack/SimpleHeaderTable$CircularBuffer<TE;>;
            0   18     1  newCapacity  I
            7   18     2     capacity  I
            8   18     3  newElements  [Ljava/lang/Object;
    MethodParameters:
             Name  Flags
      newCapacity  
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "SimpleHeaderTable.java"
NestHost: jdk.internal.net.http.hpack.SimpleHeaderTable
InnerClasses:
  final CircularBuffer = jdk.internal.net.http.hpack.SimpleHeaderTable$CircularBuffer of jdk.internal.net.http.hpack.SimpleHeaderTable