final class org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer extends org.glassfish.grizzly.memory.HeapBuffer implements org.glassfish.grizzly.memory.AbstractMemoryManager$TrimAware
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer
  super_class: org.glassfish.grizzly.memory.HeapBuffer
{
  private org.glassfish.grizzly.memory.HeapMemoryManager mm;
    descriptor: Lorg/glassfish/grizzly/memory/HeapMemoryManager;
    flags: (0x0002) ACC_PRIVATE

  private void <init>(org.glassfish.grizzly.memory.HeapMemoryManager, byte[], int, int);
    descriptor: (Lorg/glassfish/grizzly/memory/HeapMemoryManager;[BII)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=4, locals=5, args_size=5
        start local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
        start local 1 // org.glassfish.grizzly.memory.HeapMemoryManager mm
        start local 2 // byte[] heap
        start local 3 // int offset
        start local 4 // int capacity
         0: .line 462
            aload 0 /* this */
            aload 2 /* heap */
            iload 3 /* offset */
            iload 4 /* capacity */
            invokespecial org.glassfish.grizzly.memory.HeapBuffer.<init>:([BII)V
         1: .line 463
            aload 0 /* this */
            aload 1 /* mm */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
         2: .line 464
            return
        end local 4 // int capacity
        end local 3 // int offset
        end local 2 // byte[] heap
        end local 1 // org.glassfish.grizzly.memory.HeapMemoryManager mm
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    3     0      this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
            0    3     1        mm  Lorg/glassfish/grizzly/memory/HeapMemoryManager;
            0    3     2      heap  [B
            0    3     3    offset  I
            0    3     4  capacity  I
    MethodParameters:
          Name  Flags
      mm        final
      heap      
      offset    
      capacity  

  public void trim();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
         0: .line 468
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.checkDispose:()V
         1: .line 470
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
            isub
            istore 1 /* sizeToReturn */
        start local 1 // int sizeToReturn
         2: .line 472
            iload 1 /* sizeToReturn */
            ifle 15
         3: .line 473
            invokestatic org.glassfish.grizzly.memory.HeapMemoryManager.getHeapBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/HeapMemoryManager$HeapBufferThreadLocalPool;
            astore 2 /* threadLocalCache */
        start local 2 // org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool threadLocalCache
         4: .line 474
            aload 2 /* threadLocalCache */
            ifnull 15
         5: .line 476
            aload 2 /* threadLocalCache */
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.isLastAllocated:(Lorg/glassfish/grizzly/memory/HeapBuffer;)Z
            ifeq 10
         6: .line 477
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.flip:()Lorg/glassfish/grizzly/memory/HeapBuffer;
            pop
         7: .line 478
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
         8: .line 479
            aload 2 /* threadLocalCache */
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.reduceLastAllocated:(Lorg/glassfish/grizzly/memory/HeapBuffer;)Lorg/glassfish/grizzly/memory/HeapBuffer;
            pop
         9: .line 481
            return
        10: .line 482
      StackMap locals: int org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool
      StackMap stack:
            aload 2 /* threadLocalCache */
            iload 1 /* sizeToReturn */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.wantReset:(I)Z
            ifeq 15
        11: .line 483
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.flip:()Lorg/glassfish/grizzly/memory/HeapBuffer;
            pop
        12: .line 485
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
        13: .line 487
            aload 2 /* threadLocalCache */
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
            iadd
            iload 1 /* sizeToReturn */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.reset:([BII)V
        14: .line 488
            return
        end local 2 // org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool threadLocalCache
        15: .line 493
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokespecial org.glassfish.grizzly.memory.HeapBuffer.trim:()V
        16: .line 494
            return
        end local 1 // int sizeToReturn
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   17     0              this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
            2   17     1      sizeToReturn  I
            4   15     2  threadLocalCache  Lorg/glassfish/grizzly/memory/HeapMemoryManager$HeapBufferThreadLocalPool;

  public void recycle();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
         0: .line 498
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.allowBufferDispose:Z
         1: .line 500
            getstatic org.glassfish.grizzly.memory.HeapMemoryManager.CACHE_IDX:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
            aload 0 /* this */
            invokestatic org.glassfish.grizzly.ThreadCache.putToCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;Ljava/lang/Object;)Z
            pop
         2: .line 501
            return
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     0  this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;

  public void dispose();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
         0: .line 505
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.prepareDispose:()V
         1: .line 506
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager.release:(Lorg/glassfish/grizzly/memory/HeapBuffer;)V
         2: .line 507
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
         3: .line 509
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.byteBuffer:Ljava/nio/ByteBuffer;
         4: .line 510
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
         5: .line 511
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
         6: .line 512
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
         7: .line 513
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
         8: .line 514
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
         9: .line 515
            aload 0 /* this */
            getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.order:Ljava/nio/ByteOrder;
        10: .line 516
            aload 0 /* this */
            iconst_1
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.bigEndian:Z
        11: .line 517
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.recycle:()V
        12: .line 518
            return
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   13     0  this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;

  protected org.glassfish.grizzly.memory.HeapBuffer createHeapBuffer(int, int);
    descriptor: (II)Lorg/glassfish/grizzly/memory/HeapBuffer;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
        start local 1 // int offs
        start local 2 // int capacity
         0: .line 522
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
            iload 1 /* offs */
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
            iadd
            iload 2 /* capacity */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager.createTrimAwareBuffer:([BII)Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
            areturn
        end local 2 // int capacity
        end local 1 // int offs
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0      this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
            0    1     1      offs  I
            0    1     2  capacity  I
    MethodParameters:
          Name  Flags
      offs      final
      capacity  final

  void initialize(org.glassfish.grizzly.memory.HeapMemoryManager, byte[], int, int);
    descriptor: (Lorg/glassfish/grizzly/memory/HeapMemoryManager;[BII)V
    flags: (0x0000) 
    Code:
      stack=2, locals=5, args_size=5
        start local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
        start local 1 // org.glassfish.grizzly.memory.HeapMemoryManager mm
        start local 2 // byte[] heap
        start local 3 // int offset
        start local 4 // int length
         0: .line 527
            aload 0 /* this */
            aload 1 /* mm */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
         1: .line 528
            aload 0 /* this */
            aload 2 /* heap */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
         2: .line 529
            aload 0 /* this */
            iload 3 /* offset */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
         3: .line 530
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
         4: .line 531
            aload 0 /* this */
            iload 4 /* length */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
         5: .line 532
            aload 0 /* this */
            iload 4 /* length */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
         6: .line 534
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.disposeStackTrace:Ljava/lang/Exception;
         7: .line 535
            return
        end local 4 // int length
        end local 3 // int offset
        end local 2 // byte[] heap
        end local 1 // org.glassfish.grizzly.memory.HeapMemoryManager mm
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    8     0    this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
            0    8     1      mm  Lorg/glassfish/grizzly/memory/HeapMemoryManager;
            0    8     2    heap  [B
            0    8     3  offset  I
            0    8     4  length  I
    MethodParameters:
        Name  Flags
      mm      final
      heap    final
      offset  final
      length  final
}
SourceFile: "HeapMemoryManager.java"
NestHost: org.glassfish.grizzly.memory.HeapMemoryManager
InnerClasses:
  public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache
  protected abstract TrimAware = org.glassfish.grizzly.memory.AbstractMemoryManager$TrimAware of org.glassfish.grizzly.memory.AbstractMemoryManager
  private final HeapBufferThreadLocalPool = org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool of org.glassfish.grizzly.memory.HeapMemoryManager
  private final TrimmableHeapBuffer = org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer of org.glassfish.grizzly.memory.HeapMemoryManager