class sun.nio.ch.Util$BufferCache
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.ch.Util$BufferCache
super_class: java.lang.Object
{
private java.nio.ByteBuffer[] buffers;
descriptor: [Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int start;
descriptor: I
flags: (0x0002) ACC_PRIVATE
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=1, locals=0, args_size=0
0: ldc Lsun/nio/ch/Util;
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 sun.nio.ch.Util$BufferCache.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
private int next(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
iadd
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
irem
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/Util$BufferCache;
0 1 1 i I
MethodParameters:
Name Flags
i
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
anewarray java.nio.ByteBuffer
putfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/Util$BufferCache;
java.nio.ByteBuffer get(int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.Util$BufferCache.count:I
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
astore 2
start local 2 3: aload 2
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aaload
astore 3
start local 3 4: aload 3
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 1
if_icmpge 18
5: aconst_null
astore 3
6: aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
istore 4
start local 4 7: goto 14
8: StackMap locals: java.nio.ByteBuffer[] java.nio.ByteBuffer int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 9: aload 5
ifnonnull 11
10: goto 15
11: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 5
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 1
if_icmplt 14
12: aload 5
astore 3
13: goto 15
end local 5 14: StackMap locals:
StackMap stack:
aload 0
iload 4
invokevirtual sun.nio.ch.Util$BufferCache.next:(I)I
dup
istore 4
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
if_icmpne 8
15: StackMap locals:
StackMap stack:
aload 3
ifnonnull 17
16: aconst_null
areturn
17: StackMap locals:
StackMap stack:
aload 2
iload 4
aload 2
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aaload
aastore
end local 4 18: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aconst_null
aastore
19: aload 0
aload 0
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
invokevirtual sun.nio.ch.Util$BufferCache.next:(I)I
putfield sun.nio.ch.Util$BufferCache.start:I
20: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
isub
putfield sun.nio.ch.Util$BufferCache.count:I
21: aload 3
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
22: aload 3
iload 1
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
23: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lsun/nio/ch/Util$BufferCache;
0 24 1 size I
3 24 2 buffers [Ljava/nio/ByteBuffer;
4 24 3 buf Ljava/nio/ByteBuffer;
7 18 4 i I
9 14 5 bb Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
size
boolean offerFirst(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.Util$BufferCache.count:I
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
if_icmplt 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
iadd
iconst_1
isub
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
irem
putfield sun.nio.ch.Util$BufferCache.start:I
3: aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aload 1
aastore
4: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
iadd
putfield sun.nio.ch.Util$BufferCache.count:I
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/Util$BufferCache;
0 6 1 buf Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buf
boolean offerLast(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.Util$BufferCache.count:I
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
if_icmplt 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aload 0
getfield sun.nio.ch.Util$BufferCache.count:I
iadd
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
irem
istore 2
start local 2 3: aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
iload 2
aload 1
aastore
4: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
iadd
putfield sun.nio.ch.Util$BufferCache.count:I
5: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/Util$BufferCache;
0 6 1 buf Ljava/nio/ByteBuffer;
3 6 2 next I
MethodParameters:
Name Flags
buf
boolean isEmpty();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.Util$BufferCache.count:I
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/Util$BufferCache;
java.nio.ByteBuffer removeFirst();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: getstatic sun.nio.ch.Util$BufferCache.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.nio.ch.Util$BufferCache.count:I
ifgt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aaload
astore 1
start local 1 2: aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aconst_null
aastore
3: aload 0
aload 0
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
invokevirtual sun.nio.ch.Util$BufferCache.next:(I)I
putfield sun.nio.ch.Util$BufferCache.start:I
4: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
isub
putfield sun.nio.ch.Util$BufferCache.count:I
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/ch/Util$BufferCache;
2 6 1 buf Ljava/nio/ByteBuffer;
}
SourceFile: "Util.java"
NestHost: sun.nio.ch.Util
InnerClasses:
private BufferCache = sun.nio.ch.Util$BufferCache of sun.nio.ch.Util