final class org.glassfish.grizzly.http.io.TemporaryHeapBuffer extends org.glassfish.grizzly.memory.HeapBuffer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.http.io.TemporaryHeapBuffer
super_class: org.glassfish.grizzly.memory.HeapBuffer
{
boolean isDisposed;
descriptor: Z
flags: (0x0000)
boolean hasClonedArray;
descriptor: Z
flags: (0x0000)
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.glassfish.grizzly.memory.HeapBuffer.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
void reset(byte[], int, int);
descriptor: ([BII)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.heap:[B
1: aload 0
iload 2
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.offset:I
2: aload 0
iload 3
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.cap:I
3: aload 0
iload 3
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.lim:I
4: aload 0
iconst_0
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.pos:I
5: aload 0
aconst_null
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.byteBuffer:Ljava/nio/ByteBuffer;
6: aload 0
iconst_0
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.isDisposed:Z
7: aload 0
iconst_0
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.hasClonedArray:Z
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
0 9 1 heap [B
0 9 2 offset I
0 9 3 len I
MethodParameters:
Name Flags
heap final
offset final
len final
org.glassfish.grizzly.Buffer cloneContent(org.glassfish.grizzly.memory.MemoryManager);
descriptor: (Lorg/glassfish/grizzly/memory/MemoryManager;)Lorg/glassfish/grizzly/Buffer;
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.glassfish.grizzly.http.io.TemporaryHeapBuffer.remaining:()I
istore 3
start local 3 1: aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.hasClonedArray:Z
ifne 6
2: aload 1
iload 3
invokeinterface org.glassfish.grizzly.memory.MemoryManager.allocate:(I)Lorg/glassfish/grizzly/Buffer;
astore 2
start local 2 3: aload 2
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.heap:[B
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.offset:I
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.pos:I
iadd
iload 3
invokeinterface org.glassfish.grizzly.Buffer.put:([BII)Lorg/glassfish/grizzly/Buffer;
pop
4: aload 2
invokeinterface org.glassfish.grizzly.Buffer.flip:()Lorg/glassfish/grizzly/Buffer;
pop
5: goto 7
end local 2 6: StackMap locals: org.glassfish.grizzly.http.io.TemporaryHeapBuffer org.glassfish.grizzly.memory.MemoryManager top int
StackMap stack:
aload 1
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.heap:[B
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.offset:I
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.pos:I
iadd
iload 3
invokestatic org.glassfish.grizzly.memory.Buffers.wrap:(Lorg/glassfish/grizzly/memory/MemoryManager;[BII)Lorg/glassfish/grizzly/Buffer;
astore 2
start local 2 7: StackMap locals: org.glassfish.grizzly.http.io.TemporaryHeapBuffer org.glassfish.grizzly.memory.MemoryManager org.glassfish.grizzly.Buffer int
StackMap stack:
aload 2
iconst_1
invokeinterface org.glassfish.grizzly.Buffer.allowBufferDispose:(Z)V
8: aload 0
invokevirtual org.glassfish.grizzly.http.io.TemporaryHeapBuffer.dispose:()V
9: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
0 10 1 memoryManager Lorg/glassfish/grizzly/memory/MemoryManager;
3 6 2 buffer Lorg/glassfish/grizzly/Buffer;
7 10 2 buffer Lorg/glassfish/grizzly/Buffer;
1 10 3 length I
MethodParameters:
Name Flags
memoryManager final
protected void onShareHeap();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.hasClonedArray:Z
ifne 4
1: aload 0
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.heap:[B
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.offset:I
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.offset:I
aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.cap:I
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.heap:[B
2: aload 0
iconst_0
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.offset:I
3: aload 0
iconst_1
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.hasClonedArray:Z
4: StackMap locals:
StackMap stack:
aload 0
invokespecial org.glassfish.grizzly.memory.HeapBuffer.onShareHeap:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
public void dispose();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.isDisposed:Z
1: aload 0
invokespecial org.glassfish.grizzly.memory.HeapBuffer.dispose:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
boolean isDisposed();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.io.TemporaryHeapBuffer.isDisposed:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
iconst_0
iconst_0
invokevirtual org.glassfish.grizzly.http.io.TemporaryHeapBuffer.reset:([BII)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/io/TemporaryHeapBuffer;
}
SourceFile: "TemporaryHeapBuffer.java"