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: getstatic sun.nio.ch.Util$BufferCache.$assertionsDisabled:Z
ifne 1
iload 1
invokestatic sun.nio.ch.Util.isBufferTooLarge:(I)Z
ifeq 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.count:I
ifne 3
2: aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
astore 2
start local 2 4: aload 2
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aaload
astore 3
start local 3 5: aload 3
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 1
if_icmpge 19
6: aconst_null
astore 3
7: aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
istore 4
start local 4 8: goto 15
9: StackMap locals: java.nio.ByteBuffer[] java.nio.ByteBuffer int
StackMap stack:
aload 2
iload 4
aaload
astore 5
start local 5 10: aload 5
ifnonnull 12
11: goto 16
12: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 5
invokevirtual java.nio.ByteBuffer.capacity:()I
iload 1
if_icmplt 15
13: aload 5
astore 3
14: goto 16
end local 5 15: 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 9
16: StackMap locals:
StackMap stack:
aload 3
ifnonnull 18
17: aconst_null
areturn
18: 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 19: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield sun.nio.ch.Util$BufferCache.start:I
aconst_null
aastore
20: 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
21: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
isub
putfield sun.nio.ch.Util$BufferCache.count:I
22: aload 3
invokevirtual java.nio.ByteBuffer.rewind:()Ljava/nio/Buffer;
pop
23: aload 3
iload 1
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
24: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/nio/ch/Util$BufferCache;
0 25 1 size I
4 25 2 buffers [Ljava/nio/ByteBuffer;
5 25 3 buf Ljava/nio/ByteBuffer;
8 19 4 i I
10 15 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: getstatic sun.nio.ch.Util$BufferCache.$assertionsDisabled:Z
ifne 1
aload 1
invokestatic sun.nio.ch.Util.isBufferTooLarge:(Ljava/nio/ByteBuffer;)Z
ifeq 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.count:I
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
if_icmplt 3
2: iconst_0
ireturn
3: 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
4: 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
5: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
iadd
putfield sun.nio.ch.Util$BufferCache.count:I
6: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/Util$BufferCache;
0 7 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: getstatic sun.nio.ch.Util$BufferCache.$assertionsDisabled:Z
ifne 1
aload 1
invokestatic sun.nio.ch.Util.isBufferTooLarge:(Ljava/nio/ByteBuffer;)Z
ifeq 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.count:I
getstatic sun.nio.ch.Util.TEMP_BUF_POOL_SIZE:I
if_icmplt 3
2: iconst_0
ireturn
3: 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 4: aload 0
getfield sun.nio.ch.Util$BufferCache.buffers:[Ljava/nio/ByteBuffer;
iload 2
aload 1
aastore
5: aload 0
dup
getfield sun.nio.ch.Util$BufferCache.count:I
iconst_1
iadd
putfield sun.nio.ch.Util$BufferCache.count:I
6: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/Util$BufferCache;
0 7 1 buf Ljava/nio/ByteBuffer;
4 7 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