class org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag implements org.apache.lucene.util.Accountable
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag
super_class: java.lang.Object
{
private static final long BASE_RAM_BYTES_USED;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int[] keys;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int[] freqs;
descriptor: [I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int mask;
descriptor: I
flags: (0x0012) ACC_PRIVATE, 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=2, locals=0, args_size=0
0: ldc Lorg/apache/lucene/util/FrequencyTrackingRingBuffer;
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.FrequencyTrackingRingBuffer$IntBag.$assertionsDisabled:Z
3: ldc Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfInstance:(Ljava/lang/Class;)J
putstatic org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.BASE_RAM_BYTES_USED:J
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: iconst_2
iload 1
iconst_3
imul
iconst_2
idiv
invokestatic java.lang.Math.max:(II)I
istore 2
start local 2 2: iload 2
iconst_1
isub
invokestatic java.lang.Integer.highestOneBit:(I)I
iconst_1
ishl
istore 2
3: getstatic org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.$assertionsDisabled:Z
ifne 4
iload 2
iload 1
if_icmpgt 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag int int
StackMap stack:
aload 0
iload 2
newarray 10
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
5: aload 0
iload 2
newarray 10
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
6: aload 0
iload 2
iconst_1
isub
putfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
0 8 1 maxSize I
2 8 2 capacity I
MethodParameters:
Name Flags
maxSize
public long ramBytesUsed();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.BASE_RAM_BYTES_USED:J
1: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([I)J
2: ladd
3: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([I)J
4: ladd
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
int frequency(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
start local 2 1: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 2
iaload
iload 1
if_icmpne 3
2: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
ifne 5
4: iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iload 2
iconst_1
iadd
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
goto 1
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
0 6 1 key I
1 6 2 slot I
MethodParameters:
Name Flags
key
int add(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
start local 2 1: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
ifne 4
2: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 2
iload 1
iastore
3: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iconst_1
dup_x2
iastore
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 2
iaload
iload 1
if_icmpne 6
5: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
dup2
iaload
iconst_1
iadd
dup_x2
iastore
ireturn
6: StackMap locals:
StackMap stack:
iload 2
iconst_1
iadd
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
goto 1
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
0 7 1 key I
1 7 2 slot I
MethodParameters:
Name Flags
key
boolean remove(int);
descriptor: (I)Z
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
start local 2 1: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
ifne 3
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 2
iaload
iload 1
if_icmpne 8
4: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
dup2
iaload
iconst_1
isub
dup_x2
iastore
istore 3
start local 3 5: iload 3
ifne 7
6: aload 0
iload 2
invokevirtual org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.relocateAdjacentKeys:(I)V
7: StackMap locals: int
StackMap stack:
iconst_1
ireturn
end local 3 8: StackMap locals:
StackMap stack:
iload 2
iconst_1
iadd
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
goto 1
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
0 9 1 key I
1 9 2 slot I
5 8 3 newFreq I
MethodParameters:
Name Flags
key
private void relocateAdjacentKeys(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
iadd
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
start local 2 1: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
istore 3
start local 3 2: iload 3
ifne 4
3: goto 12
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 2
iaload
istore 4
start local 4 5: iload 4
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 5
start local 5 6: iload 5
iload 2
iload 1
invokestatic org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.between:(III)Z
ifeq 11
7: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 1
iload 4
iastore
8: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 1
iload 3
iastore
9: aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iconst_0
iastore
10: iload 2
istore 1
end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack:
iload 2
iconst_1
iadd
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.mask:I
iand
istore 2
goto 1
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
0 13 1 freeSlot I
1 12 2 slot I
2 11 3 freq I
5 11 4 key I
6 11 5 expectedSlot I
MethodParameters:
Name Flags
freeSlot
private static boolean between(int, int, int);
descriptor: (III)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 0
iload 1
if_icmpgt 3
1: iload 0
iload 2
if_icmpgt 2
iload 2
iload 1
if_icmpgt 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
3: StackMap locals:
StackMap stack:
iload 2
iload 0
if_icmpge 4
iload 2
iload 1
if_icmple 4
iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 chainStart I
0 5 1 chainEnd I
0 5 2 slot I
MethodParameters:
Name Flags
chainStart
chainEnd
slot
java.util.Map<java.lang.Integer, java.lang.Integer> asMap();
descriptor: ()Ljava/util/Map;
flags: (0x0000)
Code:
stack=4, locals=3, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 6
3: StackMap locals: java.util.Map int
StackMap stack:
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
ifle 5
4: aload 1
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
iload 2
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.freqs:[I
iload 2
iaload
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag.keys:[I
arraylength
if_icmplt 3
end local 2 7: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/lucene/util/FrequencyTrackingRingBuffer$IntBag;
1 8 1 map Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/Integer;>;
2 7 2 i I
Signature: ()Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/Integer;>;
}
SourceFile: "FrequencyTrackingRingBuffer.java"
NestHost: org.apache.lucene.util.FrequencyTrackingRingBuffer
InnerClasses:
private IntBag = org.apache.lucene.util.FrequencyTrackingRingBuffer$IntBag of org.apache.lucene.util.FrequencyTrackingRingBuffer