public final class org.apache.lucene.util.ByteBlockPool implements org.apache.lucene.util.Accountable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.ByteBlockPool
super_class: java.lang.Object
{
private static final long BASE_RAM_BYTES;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final int BYTE_BLOCK_SHIFT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 15
public static final int BYTE_BLOCK_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32768
public static final int BYTE_BLOCK_MASK;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 32767
public byte[][] buffers;
descriptor: [[B
flags: (0x0001) ACC_PUBLIC
private int bufferUpto;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public int byteUpto;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public byte[] buffer;
descriptor: [B
flags: (0x0001) ACC_PUBLIC
public int byteOffset;
descriptor: I
flags: (0x0001) ACC_PUBLIC
private final org.apache.lucene.util.ByteBlockPool$Allocator allocator;
descriptor: Lorg/apache/lucene/util/ByteBlockPool$Allocator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static final int[] NEXT_LEVEL_ARRAY;
descriptor: [I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int[] LEVEL_SIZE_ARRAY;
descriptor: [I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int FIRST_LEVEL_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
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=4, locals=0, args_size=0
0: ldc Lorg/apache/lucene/util/ByteBlockPool;
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 org.apache.lucene.util.ByteBlockPool.$assertionsDisabled:Z
3: ldc Lorg/apache/lucene/util/ByteBlockPool;
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfInstance:(Ljava/lang/Class;)J
putstatic org.apache.lucene.util.ByteBlockPool.BASE_RAM_BYTES:J
4: bipush 10
newarray 10
dup
iconst_0
iconst_1
iastore
dup
iconst_1
iconst_2
iastore
dup
iconst_2
iconst_3
iastore
dup
iconst_3
iconst_4
iastore
dup
iconst_4
iconst_5
iastore
dup
iconst_5
bipush 6
iastore
dup
bipush 6
bipush 7
iastore
dup
bipush 7
bipush 8
iastore
dup
bipush 8
bipush 9
iastore
dup
bipush 9
bipush 9
iastore
putstatic org.apache.lucene.util.ByteBlockPool.NEXT_LEVEL_ARRAY:[I
5: bipush 10
newarray 10
dup
iconst_0
iconst_5
iastore
dup
iconst_1
bipush 14
iastore
dup
iconst_2
bipush 20
iastore
dup
iconst_3
bipush 30
iastore
dup
iconst_4
bipush 40
iastore
dup
iconst_5
bipush 40
iastore
dup
bipush 6
bipush 80
iastore
dup
bipush 7
bipush 80
iastore
dup
bipush 8
bipush 120
iastore
dup
bipush 9
sipush 200
iastore
putstatic org.apache.lucene.util.ByteBlockPool.LEVEL_SIZE_ARRAY:[I
6: getstatic org.apache.lucene.util.ByteBlockPool.LEVEL_SIZE_ARRAY:[I
iconst_0
iaload
putstatic org.apache.lucene.util.ByteBlockPool.FIRST_LEVEL_SIZE:I
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.lucene.util.ByteBlockPool$Allocator);
descriptor: (Lorg/apache/lucene/util/ByteBlockPool$Allocator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 10
anewarray byte[]
putfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
2: aload 0
iconst_m1
putfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
3: aload 0
ldc 32768
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
4: aload 0
sipush -32768
putfield org.apache.lucene.util.ByteBlockPool.byteOffset:I
5: aload 0
aload 1
putfield org.apache.lucene.util.ByteBlockPool.allocator:Lorg/apache/lucene/util/ByteBlockPool$Allocator;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 7 1 allocator Lorg/apache/lucene/util/ByteBlockPool$Allocator;
MethodParameters:
Name Flags
allocator
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
iconst_1
invokevirtual org.apache.lucene.util.ByteBlockPool.reset:(ZZ)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/ByteBlockPool;
public void reset(boolean, boolean);
descriptor: (ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
iconst_m1
if_icmpeq 24
1: iload 1
ifeq 8
2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 3
aaload
iconst_0
invokestatic java.util.Arrays.fill:([BB)V
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
if_icmplt 4
end local 3 7: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
aaload
iconst_0
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iconst_0
invokestatic java.util.Arrays.fill:([BIIB)V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
ifgt 9
iload 2
ifne 14
9: StackMap locals:
StackMap stack:
iload 2
ifeq 10
iconst_1
goto 11
StackMap locals:
StackMap stack:
10: iconst_0
StackMap locals:
StackMap stack: int
11: istore 3
start local 3 12: aload 0
getfield org.apache.lucene.util.ByteBlockPool.allocator:Lorg/apache/lucene/util/ByteBlockPool$Allocator;
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 3
iconst_1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
iadd
invokevirtual org.apache.lucene.util.ByteBlockPool$Allocator.recycleByteBlocks:([[BII)V
13: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 3
iconst_1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
iadd
aconst_null
invokestatic java.util.Arrays.fill:([Ljava/lang/Object;IILjava/lang/Object;)V
end local 3 14: StackMap locals:
StackMap stack:
iload 2
ifeq 20
15: aload 0
iconst_0
putfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
16: aload 0
iconst_0
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
17: aload 0
iconst_0
putfield org.apache.lucene.util.ByteBlockPool.byteOffset:I
18: aload 0
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iconst_0
aaload
putfield org.apache.lucene.util.ByteBlockPool.buffer:[B
19: goto 24
20: StackMap locals:
StackMap stack:
aload 0
iconst_m1
putfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
21: aload 0
ldc 32768
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
22: aload 0
sipush -32768
putfield org.apache.lucene.util.ByteBlockPool.byteOffset:I
23: aload 0
aconst_null
putfield org.apache.lucene.util.ByteBlockPool.buffer:[B
24: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 25 1 zeroFillBuffers Z
0 25 2 reuseFirst Z
3 7 3 i I
12 14 3 offset I
MethodParameters:
Name Flags
zeroFillBuffers
reuseFirst
public void nextBuffer();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: iconst_1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
iadd
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
arraylength
if_icmpne 6
1: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
arraylength
iconst_1
iadd
2: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
3: invokestatic org.apache.lucene.util.ArrayUtil.oversize:(II)I
anewarray byte[]
astore 1
start local 1 4: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iconst_0
aload 1
iconst_0
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
5: aload 0
aload 1
putfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
end local 1 6: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iconst_1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
iadd
aload 0
getfield org.apache.lucene.util.ByteBlockPool.allocator:Lorg/apache/lucene/util/ByteBlockPool$Allocator;
invokevirtual org.apache.lucene.util.ByteBlockPool$Allocator.getByteBlock:()[B
dup_x2
aastore
putfield org.apache.lucene.util.ByteBlockPool.buffer:[B
7: aload 0
dup
getfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
iconst_1
iadd
putfield org.apache.lucene.util.ByteBlockPool.bufferUpto:I
8: aload 0
iconst_0
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
9: aload 0
dup
getfield org.apache.lucene.util.ByteBlockPool.byteOffset:I
ldc 32768
iadd
putfield org.apache.lucene.util.ByteBlockPool.byteOffset:I
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/util/ByteBlockPool;
4 6 1 newBuffers [[B
public int newSlice(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
ldc 32768
iload 1
isub
if_icmple 2
1: aload 0
invokevirtual org.apache.lucene.util.ByteBlockPool.nextBuffer:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
istore 2
start local 2 3: aload 0
dup
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iload 1
iadd
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
4: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iconst_1
isub
bipush 16
bastore
5: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 6 1 size I
3 6 2 upto I
MethodParameters:
Name Flags
size final
public int allocSlice(byte[], int);
descriptor: ([BI)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
iload 2
baload
bipush 15
iand
istore 3
start local 3 1: getstatic org.apache.lucene.util.ByteBlockPool.NEXT_LEVEL_ARRAY:[I
iload 3
iaload
istore 4
start local 4 2: getstatic org.apache.lucene.util.ByteBlockPool.LEVEL_SIZE_ARRAY:[I
iload 4
iaload
istore 5
start local 5 3: aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
ldc 32768
iload 5
isub
if_icmple 5
4: aload 0
invokevirtual org.apache.lucene.util.ByteBlockPool.nextBuffer:()V
5: StackMap locals: int int int
StackMap stack:
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
istore 6
start local 6 6: iload 6
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteOffset:I
iadd
istore 7
start local 7 7: aload 0
dup
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iload 5
iadd
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
8: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
iload 6
aload 1
iload 2
iconst_3
isub
baload
bastore
9: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
iload 6
iconst_1
iadd
aload 1
iload 2
iconst_2
isub
baload
bastore
10: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
iload 6
iconst_2
iadd
aload 1
iload 2
iconst_1
isub
baload
bastore
11: aload 1
iload 2
iconst_3
isub
iload 7
bipush 24
iushr
i2b
bastore
12: aload 1
iload 2
iconst_2
isub
iload 7
bipush 16
iushr
i2b
bastore
13: aload 1
iload 2
iconst_1
isub
iload 7
bipush 8
iushr
i2b
bastore
14: aload 1
iload 2
iload 7
i2b
bastore
15: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iconst_1
isub
bipush 16
iload 4
ior
i2b
bastore
16: iload 6
iconst_3
iadd
ireturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 17 1 slice [B
0 17 2 upto I
1 17 3 level I
2 17 4 newLevel I
3 17 5 newSize I
6 17 6 newUpto I
7 17 7 offset I
MethodParameters:
Name Flags
slice final
upto final
void setBytesRef(org.apache.lucene.util.BytesRefBuilder, org.apache.lucene.util.BytesRef, long, int);
descriptor: (Lorg/apache/lucene/util/BytesRefBuilder;Lorg/apache/lucene/util/BytesRef;JI)V
flags: (0x0000)
Code:
stack=6, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 2
iload 5
putfield org.apache.lucene.util.BytesRef.length:I
1: lload 3
bipush 15
lshr
l2i
istore 6
start local 6 2: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 6
aaload
astore 7
start local 7 3: lload 3
ldc 32767
land
l2i
istore 8
start local 8 4: iload 8
iload 5
iadd
ldc 32768
if_icmpgt 8
5: aload 2
aload 7
putfield org.apache.lucene.util.BytesRef.bytes:[B
6: aload 2
iload 8
putfield org.apache.lucene.util.BytesRef.offset:I
7: goto 12
8: StackMap locals: int byte[] int
StackMap stack:
aload 1
iload 5
invokevirtual org.apache.lucene.util.BytesRefBuilder.grow:(I)V
9: aload 2
aload 1
invokevirtual org.apache.lucene.util.BytesRefBuilder.get:()Lorg/apache/lucene/util/BytesRef;
getfield org.apache.lucene.util.BytesRef.bytes:[B
putfield org.apache.lucene.util.BytesRef.bytes:[B
10: aload 2
iconst_0
putfield org.apache.lucene.util.BytesRef.offset:I
11: aload 0
lload 3
aload 2
getfield org.apache.lucene.util.BytesRef.bytes:[B
iconst_0
iload 5
invokevirtual org.apache.lucene.util.ByteBlockPool.readBytes:(J[BII)V
12: StackMap locals:
StackMap stack:
return
end local 8 end local 7 end local 6 end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 13 1 builder Lorg/apache/lucene/util/BytesRefBuilder;
0 13 2 result Lorg/apache/lucene/util/BytesRef;
0 13 3 offset J
0 13 5 length I
2 13 6 bufferIndex I
3 13 7 buffer [B
4 13 8 pos I
MethodParameters:
Name Flags
builder
result
offset
length
public void setBytesRef(org.apache.lucene.util.BytesRef, int);
descriptor: (Lorg/apache/lucene/util/BytesRef;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 2
bipush 15
ishr
aaload
dup_x1
putfield org.apache.lucene.util.BytesRef.bytes:[B
astore 3
start local 3 1: iload 2
sipush 32767
iand
istore 4
start local 4 2: aload 3
iload 4
baload
sipush 128
iand
ifne 6
3: aload 1
aload 3
iload 4
baload
putfield org.apache.lucene.util.BytesRef.length:I
4: aload 1
iload 4
iconst_1
iadd
putfield org.apache.lucene.util.BytesRef.offset:I
5: goto 8
6: StackMap locals: byte[] int
StackMap stack:
aload 1
aload 3
iload 4
baload
bipush 127
iand
aload 3
iload 4
iconst_1
iadd
baload
sipush 255
iand
bipush 7
ishl
iadd
putfield org.apache.lucene.util.BytesRef.length:I
7: aload 1
iload 4
iconst_2
iadd
putfield org.apache.lucene.util.BytesRef.offset:I
8: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.ByteBlockPool.$assertionsDisabled:Z
ifne 9
aload 1
getfield org.apache.lucene.util.BytesRef.length:I
ifge 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 10 1 term Lorg/apache/lucene/util/BytesRef;
0 10 2 textStart I
1 10 3 bytes [B
2 10 4 pos I
MethodParameters:
Name Flags
term
textStart
public void append(org.apache.lucene.util.BytesRef);
descriptor: (Lorg/apache/lucene/util/BytesRef;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
getfield org.apache.lucene.util.BytesRef.length:I
istore 2
start local 2 1: aload 1
getfield org.apache.lucene.util.BytesRef.offset:I
istore 3
start local 3 2: goto 13
3: StackMap locals: int int
StackMap stack:
ldc 32768
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
isub
istore 4
start local 4 4: iload 2
iload 4
if_icmpge 8
5: aload 1
getfield org.apache.lucene.util.BytesRef.bytes:[B
iload 3
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: aload 0
dup
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iload 2
iadd
putfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
7: goto 14
8: StackMap locals: int
StackMap stack:
iload 4
ifle 10
9: aload 1
getfield org.apache.lucene.util.BytesRef.bytes:[B
iload 3
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
aload 0
getfield org.apache.lucene.util.ByteBlockPool.byteUpto:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.lucene.util.ByteBlockPool.nextBuffer:()V
11: iload 2
iload 4
isub
istore 2
12: iload 3
iload 4
iadd
istore 3
end local 4 13: StackMap locals:
StackMap stack:
iload 2
ifgt 3
14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 15 1 bytes Lorg/apache/lucene/util/BytesRef;
1 15 2 bytesLeft I
2 15 3 offset I
4 13 4 bufferLeft I
MethodParameters:
Name Flags
bytes final
public void readBytes(long, byte[], int, int);
descriptor: (J[BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=11, args_size=5
start local 0 start local 1 start local 3 start local 4 start local 5 0: iload 5
istore 6
start local 6 1: lload 1
bipush 15
lshr
l2i
istore 7
start local 7 2: lload 1
ldc 32767
land
l2i
istore 8
start local 8 3: goto 10
4: StackMap locals: int int int
StackMap stack:
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 7
iinc 7 1
aaload
astore 9
start local 9 5: iload 6
ldc 32768
iload 8
isub
invokestatic java.lang.Math.min:(II)I
istore 10
start local 10 6: aload 9
iload 8
aload 3
iload 4
iload 10
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
7: iload 4
iload 10
iadd
istore 4
8: iload 6
iload 10
isub
istore 6
9: iconst_0
istore 8
end local 10 end local 9 10: StackMap locals:
StackMap stack:
iload 6
ifgt 4
11: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 12 1 offset J
0 12 3 bytes [B
0 12 4 bytesOffset I
0 12 5 bytesLength I
1 12 6 bytesLeft I
2 12 7 bufferIndex I
3 12 8 pos I
5 10 9 buffer [B
6 10 10 chunk I
MethodParameters:
Name Flags
offset final
bytes final
bytesOffset
bytesLength
public void setRawBytesRef(org.apache.lucene.util.BytesRef, long);
descriptor: (Lorg/apache/lucene/util/BytesRef;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: lload 2
bipush 15
lshr
l2i
istore 4
start local 4 1: lload 2
ldc 32767
land
l2i
istore 5
start local 5 2: iload 5
aload 1
getfield org.apache.lucene.util.BytesRef.length:I
iadd
ldc 32768
if_icmpgt 6
3: aload 1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 4
aaload
putfield org.apache.lucene.util.BytesRef.bytes:[B
4: aload 1
iload 5
putfield org.apache.lucene.util.BytesRef.offset:I
5: goto 9
6: StackMap locals: int int
StackMap stack:
aload 1
aload 1
getfield org.apache.lucene.util.BytesRef.length:I
newarray 8
putfield org.apache.lucene.util.BytesRef.bytes:[B
7: aload 1
iconst_0
putfield org.apache.lucene.util.BytesRef.offset:I
8: aload 0
lload 2
aload 1
getfield org.apache.lucene.util.BytesRef.bytes:[B
iconst_0
aload 1
getfield org.apache.lucene.util.BytesRef.length:I
invokevirtual org.apache.lucene.util.ByteBlockPool.readBytes:(J[BII)V
9: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 10 1 ref Lorg/apache/lucene/util/BytesRef;
0 10 2 offset J
1 10 4 bufferIndex I
2 10 5 pos I
MethodParameters:
Name Flags
ref
offset final
public byte readByte(long);
descriptor: (J)B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: lload 1
bipush 15
lshr
l2i
istore 3
start local 3 1: lload 1
ldc 32767
land
l2i
istore 4
start local 4 2: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
iload 3
aaload
astore 5
start local 5 3: aload 5
iload 4
baload
ireturn
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/util/ByteBlockPool;
0 4 1 offset J
1 4 3 bufferIndex I
2 4 4 pos I
3 4 5 buffer [B
MethodParameters:
Name Flags
offset
public long ramBytesUsed();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: getstatic org.apache.lucene.util.ByteBlockPool.BASE_RAM_BYTES:J
lstore 1
start local 1 1: lload 1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;)J
ladd
lstore 1
2: lload 1
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:([Ljava/lang/Object;)J
ladd
lstore 1
3: aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffers:[[B
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 9
StackMap locals: org.apache.lucene.util.ByteBlockPool long top int int byte[][]
StackMap stack:
4: aload 6
iload 4
aaload
astore 3
start local 3 5: aload 3
aload 0
getfield org.apache.lucene.util.ByteBlockPool.buffer:[B
if_acmpne 7
6: goto 8
7: StackMap locals: org.apache.lucene.util.ByteBlockPool long byte[] int int byte[][]
StackMap stack:
lload 1
aload 3
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;)J
ladd
lstore 1
end local 3 8: StackMap locals: org.apache.lucene.util.ByteBlockPool long top int int byte[][]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
9: iload 4
iload 5
if_icmplt 4
10: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/lucene/util/ByteBlockPool;
1 11 1 size J
5 8 3 buf [B
}
SourceFile: "ByteBlockPool.java"
NestMembers:
org.apache.lucene.util.ByteBlockPool$Allocator org.apache.lucene.util.ByteBlockPool$DirectAllocator org.apache.lucene.util.ByteBlockPool$DirectTrackingAllocator
InnerClasses:
public abstract Allocator = org.apache.lucene.util.ByteBlockPool$Allocator of org.apache.lucene.util.ByteBlockPool
public final DirectAllocator = org.apache.lucene.util.ByteBlockPool$DirectAllocator of org.apache.lucene.util.ByteBlockPool
public DirectTrackingAllocator = org.apache.lucene.util.ByteBlockPool$DirectTrackingAllocator of org.apache.lucene.util.ByteBlockPool