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 489
            aload 0 /* this */
            aload 2 /* heap */
            iload 3 /* offset */
            iload 4 /* capacity */
            invokespecial org.glassfish.grizzly.memory.HeapBuffer.<init>:([BII)V
         1: .line 490
            aload 0 /* this */
            aload 1 /* mm */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
         2: .line 491
            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 495
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.checkDispose:()V
         1: .line 497
            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 500
            iload 1 /* sizeToReturn */
            ifle 16
         3: .line 502
            invokestatic org.glassfish.grizzly.memory.HeapMemoryManager.getHeapBufferThreadLocalPool:()Lorg/glassfish/grizzly/memory/HeapMemoryManager$HeapBufferThreadLocalPool;
         4: .line 501
            astore 2 /* threadLocalCache */
        start local 2 // org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool threadLocalCache
         5: .line 503
            aload 2 /* threadLocalCache */
            ifnull 16
         6: .line 505
            aload 2 /* threadLocalCache */
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.isLastAllocated:(Lorg/glassfish/grizzly/memory/HeapBuffer;)Z
            ifeq 11
         7: .line 506
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.flip:()Lorg/glassfish/grizzly/memory/HeapBuffer;
            pop
         8: .line 507
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
         9: .line 508
            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
        10: .line 510
            return
        11: .line 511
      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 16
        12: .line 512
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.flip:()Lorg/glassfish/grizzly/memory/HeapBuffer;
            pop
        13: .line 514
            aload 0 /* this */
            aload 0 /* this */
            getfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
        14: .line 516
            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
        15: .line 517
            return
        end local 2 // org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool threadLocalCache
        16: .line 522
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokespecial org.glassfish.grizzly.memory.HeapBuffer.trim:()V
        17: .line 523
            return
        end local 1 // int sizeToReturn
        end local 0 // org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   18     0              this  Lorg/glassfish/grizzly/memory/HeapMemoryManager$TrimmableHeapBuffer;
            2   18     1      sizeToReturn  I
            5   16     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 527
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.allowBufferDispose:Z
         1: .line 529
            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 530
            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 534
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.prepareDispose:()V
         1: .line 535
            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 536
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
         3: .line 538
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.byteBuffer:Ljava/nio/ByteBuffer;
         4: .line 539
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
         5: .line 540
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
         6: .line 541
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
         7: .line 542
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
         8: .line 543
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
         9: .line 544
            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 545
            aload 0 /* this */
            iconst_1
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.bigEndian:Z
        11: .line 546
            aload 0 /* this */
            invokevirtual org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.recycle:()V
        12: .line 547
            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 552
            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 560
            aload 0 /* this */
            aload 1 /* mm */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.mm:Lorg/glassfish/grizzly/memory/HeapMemoryManager;
         1: .line 561
            aload 0 /* this */
            aload 2 /* heap */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.heap:[B
         2: .line 562
            aload 0 /* this */
            iload 3 /* offset */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.offset:I
         3: .line 563
            aload 0 /* this */
            iconst_0
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.pos:I
         4: .line 564
            aload 0 /* this */
            iload 4 /* length */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.cap:I
         5: .line 565
            aload 0 /* this */
            iload 4 /* length */
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.lim:I
         6: .line 567
            aload 0 /* this */
            aconst_null
            putfield org.glassfish.grizzly.memory.HeapMemoryManager$TrimmableHeapBuffer.disposeStackTrace:Ljava/lang/Exception;
         7: .line 568
            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