public final class org.apache.lucene.util.RamUsageEstimator
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.RamUsageEstimator
super_class: java.lang.Object
{
public static final long ONE_KB;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
public static final long ONE_MB;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1048576
public static final long ONE_GB;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1073741824
public static final boolean COMPRESSED_REFS_ENABLED;
descriptor: Z
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int NUM_BYTES_OBJECT_REF;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int ;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int ;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int NUM_BYTES_OBJECT_ALIGNMENT;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int QUERY_DEFAULT_RAM_BYTES_USED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
public static final int UNKNOWN_DEFAULT_RAM_BYTES_USED;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 256
public static final java.util.Map<java.lang.Class<?>, java.lang.Integer> primitiveSizes;
descriptor: Ljava/util/Map;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Ljava/lang/Integer;>;
static final long LONG_CACHE_MIN_VALUE;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final long LONG_CACHE_MAX_VALUE;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int LONG_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int STRING_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final boolean JVM_IS_HOTSPOT_64BIT;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final java.lang.String MANAGEMENT_FACTORY_CLASS;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "java.lang.management.ManagementFactory"
static final java.lang.String HOTSPOT_BEAN_CLASS;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.management.HotSpotDiagnosticMXBean"
public static final long HASHTABLE_RAM_BYTES_PER_ENTRY;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final long LINKED_HASHTABLE_RAM_BYTES_PER_ENTRY;
descriptor: J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int MAX_DEPTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=7, args_size=0
0: new java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
astore 0
start local 0 1: aload 0
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getstatic java.lang.Byte.TYPE:Ljava/lang/Class;
iconst_1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
getstatic java.lang.Character.TYPE:Ljava/lang/Class;
iconst_2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 0
getstatic java.lang.Short.TYPE:Ljava/lang/Class;
iconst_2
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: aload 0
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
iconst_4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
getstatic java.lang.Float.TYPE:Ljava/lang/Class;
iconst_4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
getstatic java.lang.Double.TYPE:Ljava/lang/Class;
bipush 8
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 0
getstatic java.lang.Long.TYPE:Ljava/lang/Class;
bipush 8
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putstatic org.apache.lucene.util.RamUsageEstimator.primitiveSizes:Ljava/util/Map;
end local 0 10: getstatic org.apache.lucene.util.Constants.JRE_IS_64BIT:Z
ifeq 46
11: iconst_0
istore 0
start local 0 12: bipush 8
istore 1
start local 1 13: iconst_0
istore 2
start local 2 14: ldc "com.sun.management.HotSpotDiagnosticMXBean"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
astore 3
start local 3 15: ldc "java.lang.management.ManagementFactory"
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
16: ldc "getPlatformMXBean"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/Class;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
17: aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
18: astore 4
start local 4 19: aload 4
ifnull 37
20: iconst_1
istore 2
21: aload 3
ldc "getVMOption"
iconst_1
anewarray java.lang.Class
dup
iconst_0
ldc Ljava/lang/String;
aastore
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
astore 5
start local 5 22: aload 5
aload 4
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "UseCompressedOops"
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 23: aload 6
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "getValue"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
aload 6
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
24: invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
istore 0
end local 6 25: goto 28
StackMap locals: int int int java.lang.Class java.lang.Object java.lang.reflect.Method
StackMap stack: java.lang.Exception
26: pop
27: iconst_0
istore 2
28: StackMap locals:
StackMap stack:
aload 5
aload 4
iconst_1
anewarray java.lang.Object
dup
iconst_0
ldc "ObjectAlignmentInBytes"
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 29: aload 6
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "getValue"
iconst_0
anewarray java.lang.Class
invokevirtual java.lang.Class.getMethod:(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
aload 6
iconst_0
anewarray java.lang.Object
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
30: invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 1
end local 6 31: goto 37
StackMap locals:
StackMap stack: java.lang.Exception
32: pop
33: iconst_0
istore 2
end local 5 end local 4 end local 3 34: goto 37
StackMap locals: int int int
StackMap stack: java.lang.Exception
35: pop
36: iconst_0
istore 2
37: StackMap locals:
StackMap stack:
iload 2
putstatic org.apache.lucene.util.RamUsageEstimator.JVM_IS_HOTSPOT_64BIT:Z
38: iload 0
putstatic org.apache.lucene.util.RamUsageEstimator.COMPRESSED_REFS_ENABLED:Z
39: iload 1
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_ALIGNMENT:I
40: getstatic org.apache.lucene.util.RamUsageEstimator.COMPRESSED_REFS_ENABLED:Z
ifeq 41
iconst_4
goto 42
StackMap locals:
StackMap stack:
41: bipush 8
StackMap locals:
StackMap stack: int
42: putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
43: bipush 8
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
iadd
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER:I
44: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER:I
iconst_4
iadd
i2l
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
l2i
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
end local 2 end local 1 end local 0 45: goto 52
46: StackMap locals:
StackMap stack:
iconst_0
putstatic org.apache.lucene.util.RamUsageEstimator.JVM_IS_HOTSPOT_64BIT:Z
47: iconst_0
putstatic org.apache.lucene.util.RamUsageEstimator.COMPRESSED_REFS_ENABLED:Z
48: bipush 8
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_ALIGNMENT:I
49: iconst_4
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
50: bipush 8
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER:I
51: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER:I
iconst_4
iadd
putstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
52: StackMap locals:
StackMap stack:
lconst_0
lstore 0
start local 0 53: goto 55
54: StackMap locals: long
StackMap stack:
lload 0
lconst_1
lsub
lstore 0
55: StackMap locals:
StackMap stack:
lload 0
ldc -9223372036854775808
lcmp
ifle 57
56: lload 0
lconst_1
lsub
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
lload 0
lconst_1
lsub
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
if_acmpeq 54
57: StackMap locals:
StackMap stack:
ldc -1
lstore 2
start local 2 58: goto 60
59: StackMap locals: long
StackMap stack:
lload 2
lconst_1
ladd
lstore 2
60: StackMap locals:
StackMap stack:
lload 2
ldc 9223372036854775807
lcmp
ifge 62
61: lload 2
lconst_1
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
lload 2
lconst_1
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
if_acmpeq 59
62: StackMap locals:
StackMap stack:
lload 0
putstatic org.apache.lucene.util.RamUsageEstimator.LONG_CACHE_MIN_VALUE:J
63: lload 2
putstatic org.apache.lucene.util.RamUsageEstimator.LONG_CACHE_MAX_VALUE:J
64: ldc Ljava/lang/Long;
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfInstance:(Ljava/lang/Class;)J
l2i
putstatic org.apache.lucene.util.RamUsageEstimator.LONG_SIZE:I
65: ldc Ljava/lang/String;
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfInstance:(Ljava/lang/Class;)J
l2i
putstatic org.apache.lucene.util.RamUsageEstimator.STRING_SIZE:I
end local 2 end local 0 66: iconst_2
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
imul
67: iconst_2
68: imul
i2l
69: putstatic org.apache.lucene.util.RamUsageEstimator.HASHTABLE_RAM_BYTES_PER_ENTRY:J
70: getstatic org.apache.lucene.util.RamUsageEstimator.HASHTABLE_RAM_BYTES_PER_ENTRY:J
71: iconst_2
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
imul
i2l
72: ladd
73: putstatic org.apache.lucene.util.RamUsageEstimator.LINKED_HASHTABLE_RAM_BYTES_PER_ENTRY:J
74: return
LocalVariableTable:
Start End Slot Name Signature
1 10 0 primitiveSizesMap Ljava/util/Map<Ljava/lang/Class<*>;Ljava/lang/Integer;>;
12 45 0 compressedOops Z
13 45 1 objectAlignment I
14 45 2 isHotspot Z
15 34 3 beanClazz Ljava/lang/Class<*>;
19 34 4 hotSpotBean Ljava/lang/Object;
22 34 5 getVMOptionMethod Ljava/lang/reflect/Method;
23 25 6 vmOption Ljava/lang/Object;
29 31 6 vmOption Ljava/lang/Object;
53 66 0 longCacheMinValue J
58 66 2 longCacheMaxValue J
Exception table:
from to target type
22 25 26 Class java.lang.ReflectiveOperationException
22 25 26 Class java.lang.RuntimeException
28 31 32 Class java.lang.ReflectiveOperationException
28 31 32 Class java.lang.RuntimeException
14 34 35 Class java.lang.ReflectiveOperationException
14 34 35 Class java.lang.RuntimeException
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/RamUsageEstimator;
public static long alignObjectSize(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_ALIGNMENT:I
i2l
lconst_1
lsub
ladd
lstore 0
1: lload 0
lload 0
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_ALIGNMENT:I
i2l
lrem
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 size J
MethodParameters:
Name Flags
size
public static long sizeOf(java.lang.Long);
descriptor: (Ljava/lang/Long;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Long.longValue:()J
getstatic org.apache.lucene.util.RamUsageEstimator.LONG_CACHE_MIN_VALUE:J
lcmp
iflt 2
aload 0
invokevirtual java.lang.Long.longValue:()J
getstatic org.apache.lucene.util.RamUsageEstimator.LONG_CACHE_MAX_VALUE:J
lcmp
ifgt 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.RamUsageEstimator.LONG_SIZE:I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 value Ljava/lang/Long;
MethodParameters:
Name Flags
value
public static long sizeOf(byte[]);
descriptor: ([B)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
aload 0
arraylength
i2l
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [B
MethodParameters:
Name Flags
arr
public static long sizeOf(boolean[]);
descriptor: ([Z)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
aload 0
arraylength
i2l
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [Z
MethodParameters:
Name Flags
arr
public static long sizeOf(char[]);
descriptor: ([C)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ldc 2
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [C
MethodParameters:
Name Flags
arr
public static long sizeOf(short[]);
descriptor: ([S)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ldc 2
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [S
MethodParameters:
Name Flags
arr
public static long sizeOf(int[]);
descriptor: ([I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ldc 4
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [I
MethodParameters:
Name Flags
arr
public static long sizeOf(float[]);
descriptor: ([F)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ldc 4
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [F
MethodParameters:
Name Flags
arr
public static long sizeOf(long[]);
descriptor: ([J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ldc 8
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [J
MethodParameters:
Name Flags
arr
public static long sizeOf(double[]);
descriptor: ([D)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ldc 8
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [D
MethodParameters:
Name Flags
arr
public static long sizeOf(java.lang.String[]);
descriptor: ([Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:([Ljava/lang/Object;)J
lstore 1
start local 1 1: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: java.lang.String[] long top int int java.lang.String[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
ifnonnull 5
4: goto 6
5: StackMap locals: java.lang.String[] long java.lang.String int int java.lang.String[]
StackMap stack:
lload 1
aload 3
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:(Ljava/lang/String;)J
ladd
lstore 1
end local 3 6: StackMap locals: java.lang.String[] long top int int java.lang.String[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 2
8: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 arr [Ljava/lang/String;
1 9 1 size J
3 6 3 s Ljava/lang/String;
MethodParameters:
Name Flags
arr
public static long sizeOfMap(java.util.Map<?, ?>);
descriptor: (Ljava/util/Map;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
ldc 256
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfMap:(Ljava/util/Map;IJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 map Ljava/util/Map<**>;
Signature: (Ljava/util/Map<**>;)J
MethodParameters:
Name Flags
map
public static long sizeOfMap(java.util.Map<?, ?>, );
descriptor: (Ljava/util/Map;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
lload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfMap:(Ljava/util/Map;IJ)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 map Ljava/util/Map<**>;
0 1 1 defSize J
Signature: (Ljava/util/Map<**>;J)J
MethodParameters:
Name Flags
map
defSize
private static long sizeOfMap(java.util.Map<?, ?>, int, );
descriptor: (Ljava/util/Map;IJ)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:(Ljava/lang/Object;)J
lstore 4
start local 4 3: iload 1
iconst_1
if_icmple 5
4: lload 4
lreturn
5: StackMap locals: long
StackMap stack:
ldc -1
lstore 6
start local 6 6: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 9
goto 13
StackMap locals: java.util.Map int long long long top java.util.Iterator
StackMap stack:
7: aload 9
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 8
start local 8 8: lload 6
ldc -1
lcmp
ifne 10
9: aload 8
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:(Ljava/lang/Object;)J
lstore 6
10: StackMap locals: java.util.Map int long long long java.util.Map$Entry java.util.Iterator
StackMap stack:
lload 4
lload 6
ladd
lstore 4
11: lload 4
aload 8
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
iload 1
lload 2
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;IJ)J
ladd
lstore 4
12: lload 4
aload 8
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
iload 1
lload 2
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;IJ)J
ladd
lstore 4
end local 8 13: StackMap locals: java.util.Map int long long long top java.util.Iterator
StackMap stack:
aload 9
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
14: lload 4
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 6 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 map Ljava/util/Map<**>;
0 15 1 depth I
0 15 2 defSize J
3 15 4 size J
6 15 6 sizeOfEntry J
8 13 8 entry Ljava/util/Map$Entry<**>;
Signature: (Ljava/util/Map<**>;IJ)J
MethodParameters:
Name Flags
map
depth
defSize
public static long sizeOfCollection(java.util.Collection<?>);
descriptor: (Ljava/util/Collection;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
ldc 256
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfCollection:(Ljava/util/Collection;IJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 collection Ljava/util/Collection<*>;
Signature: (Ljava/util/Collection<*>;)J
MethodParameters:
Name Flags
collection
public static long sizeOfCollection(java.util.Collection<?>, );
descriptor: (Ljava/util/Collection;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
lload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfCollection:(Ljava/util/Collection;IJ)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 collection Ljava/util/Collection<*>;
0 1 1 defSize J
Signature: (Ljava/util/Collection<*>;J)J
MethodParameters:
Name Flags
collection
defSize
private static long sizeOfCollection(java.util.Collection<?>, int, );
descriptor: (Ljava/util/Collection;IJ)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:(Ljava/lang/Object;)J
lstore 4
start local 4 3: iload 1
iconst_1
if_icmple 5
4: lload 4
lreturn
5: StackMap locals: long
StackMap stack:
lload 4
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
aload 0
invokeinterface java.util.Collection.size:()I
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
imul
iadd
i2l
ladd
lstore 4
6: aload 0
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 9
StackMap locals: java.util.Collection int long long top java.util.Iterator
StackMap stack:
7: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 6
start local 6 8: lload 4
aload 6
iload 1
lload 2
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;IJ)J
ladd
lstore 4
end local 6 9: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
10: lload 4
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 collection Ljava/util/Collection<*>;
0 11 1 depth I
0 11 2 defSize J
3 11 4 size J
8 9 6 o Ljava/lang/Object;
Signature: (Ljava/util/Collection<*>;IJ)J
MethodParameters:
Name Flags
collection
depth
defSize
public static long sizeOf(org.apache.lucene.search.Query);
descriptor: (Lorg/apache/lucene/search/Query;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ldc 1024
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:(Lorg/apache/lucene/search/Query;J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 q Lorg/apache/lucene/search/Query;
MethodParameters:
Name Flags
q
public static long sizeOf(org.apache.lucene.search.Query, long);
descriptor: (Lorg/apache/lucene/search/Query;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
instanceof org.apache.lucene.util.Accountable
ifeq 2
1: aload 0
checkcast org.apache.lucene.util.Accountable
invokeinterface org.apache.lucene.util.Accountable.ramBytesUsed:()J
lreturn
2: StackMap locals:
StackMap stack:
new org.apache.lucene.util.RamUsageEstimator$RamUsageQueryVisitor
dup
aload 0
lload 1
invokespecial org.apache.lucene.util.RamUsageEstimator$RamUsageQueryVisitor.<init>:(Lorg/apache/lucene/search/Query;J)V
astore 3
start local 3 3: aload 0
aload 3
invokevirtual org.apache.lucene.search.Query.visit:(Lorg/apache/lucene/search/QueryVisitor;)V
4: aload 3
getfield org.apache.lucene.util.RamUsageEstimator$RamUsageQueryVisitor.total:J
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 q Lorg/apache/lucene/search/Query;
0 5 1 defSize J
3 5 3 visitor Lorg/apache/lucene/util/RamUsageEstimator$RamUsageQueryVisitor;
MethodParameters:
Name Flags
q
defSize
public static long sizeOfObject(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
ldc 256
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;IJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 o Ljava/lang/Object;
MethodParameters:
Name Flags
o
public static long sizeOfObject(java.lang.Object, long);
descriptor: (Ljava/lang/Object;J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
lload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfObject:(Ljava/lang/Object;IJ)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 o Ljava/lang/Object;
0 1 1 defSize J
MethodParameters:
Name Flags
o
defSize
private static long sizeOfObject(java.lang.Object, int, long);
descriptor: (Ljava/lang/Object;IJ)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnonnull 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.apache.lucene.util.Accountable
ifeq 5
3: aload 0
checkcast org.apache.lucene.util.Accountable
invokeinterface org.apache.lucene.util.Accountable.ramBytesUsed:()J
lstore 4
start local 4 4: goto 51
end local 4 StackMap locals:
StackMap stack:
5: aload 0
instanceof java.lang.String
ifeq 8
6: aload 0
checkcast java.lang.String
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:(Ljava/lang/String;)J
lstore 4
start local 4 7: goto 51
end local 4 StackMap locals:
StackMap stack:
8: aload 0
instanceof boolean[]
ifeq 11
9: aload 0
checkcast boolean[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([Z)J
lstore 4
start local 4 10: goto 51
end local 4 StackMap locals:
StackMap stack:
11: aload 0
instanceof byte[]
ifeq 14
12: aload 0
checkcast byte[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([B)J
lstore 4
start local 4 13: goto 51
end local 4 StackMap locals:
StackMap stack:
14: aload 0
instanceof char[]
ifeq 17
15: aload 0
checkcast char[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([C)J
lstore 4
start local 4 16: goto 51
end local 4 StackMap locals:
StackMap stack:
17: aload 0
instanceof double[]
ifeq 20
18: aload 0
checkcast double[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([D)J
lstore 4
start local 4 19: goto 51
end local 4 StackMap locals:
StackMap stack:
20: aload 0
instanceof float[]
ifeq 23
21: aload 0
checkcast float[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([F)J
lstore 4
start local 4 22: goto 51
end local 4 StackMap locals:
StackMap stack:
23: aload 0
instanceof int[]
ifeq 26
24: aload 0
checkcast int[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([I)J
lstore 4
start local 4 25: goto 51
end local 4 StackMap locals:
StackMap stack:
26: aload 0
instanceof java.lang.Long
ifeq 29
27: aload 0
checkcast java.lang.Long
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:(Ljava/lang/Long;)J
lstore 4
start local 4 28: goto 51
end local 4 StackMap locals:
StackMap stack:
29: aload 0
instanceof long[]
ifeq 32
30: aload 0
checkcast long[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([J)J
lstore 4
start local 4 31: goto 51
end local 4 StackMap locals:
StackMap stack:
32: aload 0
instanceof short[]
ifeq 35
33: aload 0
checkcast short[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([S)J
lstore 4
start local 4 34: goto 51
end local 4 StackMap locals:
StackMap stack:
35: aload 0
instanceof java.lang.String[]
ifeq 38
36: aload 0
checkcast java.lang.String[]
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:([Ljava/lang/String;)J
lstore 4
start local 4 37: goto 51
end local 4 StackMap locals:
StackMap stack:
38: aload 0
instanceof org.apache.lucene.search.Query
ifeq 41
39: aload 0
checkcast org.apache.lucene.search.Query
lload 2
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOf:(Lorg/apache/lucene/search/Query;J)J
lstore 4
start local 4 40: goto 51
end local 4 StackMap locals:
StackMap stack:
41: aload 0
instanceof java.util.Map
ifeq 44
42: aload 0
checkcast java.util.Map
iinc 1 1
iload 1
lload 2
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfMap:(Ljava/util/Map;IJ)J
lstore 4
start local 4 43: goto 51
end local 4 StackMap locals:
StackMap stack:
44: aload 0
instanceof java.util.Collection
ifeq 47
45: aload 0
checkcast java.util.Collection
iinc 1 1
iload 1
lload 2
invokestatic org.apache.lucene.util.RamUsageEstimator.sizeOfCollection:(Ljava/util/Collection;IJ)J
lstore 4
start local 4 46: goto 51
end local 4 47: StackMap locals:
StackMap stack:
lload 2
lconst_0
lcmp
ifle 50
48: lload 2
lstore 4
start local 4 49: goto 51
end local 4 50: StackMap locals:
StackMap stack:
aload 0
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:(Ljava/lang/Object;)J
lstore 4
start local 4 51: StackMap locals: long
StackMap stack:
lload 4
lreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 o Ljava/lang/Object;
0 52 1 depth I
0 52 2 defSize J
4 5 4 size J
7 8 4 size J
10 11 4 size J
13 14 4 size J
16 17 4 size J
19 20 4 size J
22 23 4 size J
25 26 4 size J
28 29 4 size J
31 32 4 size J
34 35 4 size J
37 38 4 size J
40 41 4 size J
43 44 4 size J
46 47 4 size J
49 50 4 size J
51 52 4 size J
MethodParameters:
Name Flags
o
depth
defSize
public static long sizeOf(org.apache.lucene.util.Accountable);
descriptor: (Lorg/apache/lucene/util/Accountable;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface org.apache.lucene.util.Accountable.ramBytesUsed:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 accountable Lorg/apache/lucene/util/Accountable;
MethodParameters:
Name Flags
accountable
public static long sizeOf(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: lconst_0
lreturn
2: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.RamUsageEstimator.STRING_SIZE:I
i2l
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
ladd
ldc 2
aload 0
invokevirtual java.lang.String.length:()I
i2l
lmul
ladd
lstore 1
start local 1 3: lload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
3 4 1 size J
MethodParameters:
Name Flags
s
public static long shallowSizeOf(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
i2l
aload 0
arraylength
i2l
lmul
ladd
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 arr [Ljava/lang/Object;
MethodParameters:
Name Flags
arr
public static long shallowSizeOf(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 1
lconst_0
lreturn
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 1
start local 1 2: aload 1
invokevirtual java.lang.Class.isArray:()Z
ifeq 4
3: aload 0
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfArray:(Ljava/lang/Object;)J
lreturn
4: StackMap locals: java.lang.Class
StackMap stack:
aload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOfInstance:(Ljava/lang/Class;)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 obj Ljava/lang/Object;
2 5 1 clz Ljava/lang/Class<*>;
MethodParameters:
Name Flags
obj
public static long shallowSizeOfInstance(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Class.isArray:()Z
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "This method does not work with array classes."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 4
3: getstatic org.apache.lucene.util.RamUsageEstimator.primitiveSizes:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2l
lreturn
4: StackMap locals:
StackMap stack:
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_HEADER:I
i2l
lstore 1
start local 1 5: goto 15
6: StackMap locals: long
StackMap stack:
aload 0
astore 3
start local 3 7: new org.apache.lucene.util.RamUsageEstimator$1
dup
aload 3
invokespecial org.apache.lucene.util.RamUsageEstimator$1.<init>:(Ljava/lang/Class;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.reflect.Field[]
astore 4
start local 4 8: aload 4
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 13
StackMap locals: java.lang.Class long java.lang.Class java.lang.reflect.Field[] top int int java.lang.reflect.Field[]
StackMap stack:
9: aload 8
iload 6
aaload
astore 5
start local 5 10: aload 5
invokevirtual java.lang.reflect.Field.getModifiers:()I
invokestatic java.lang.reflect.Modifier.isStatic:(I)Z
ifne 12
11: lload 1
aload 5
invokestatic org.apache.lucene.util.RamUsageEstimator.adjustForField:(JLjava/lang/reflect/Field;)J
lstore 1
end local 5 12: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
iload 7
if_icmplt 9
end local 4 end local 3 14: aload 0
invokevirtual java.lang.Class.getSuperclass:()Ljava/lang/Class;
astore 0
StackMap locals: java.lang.Class long
StackMap stack:
15: aload 0
ifnonnull 6
16: lload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 clazz Ljava/lang/Class<*>;
5 17 1 size J
7 14 3 target Ljava/lang/Class<*>;
8 14 4 fields [Ljava/lang/reflect/Field;
10 12 5 f Ljava/lang/reflect/Field;
Signature: (Ljava/lang/Class<*>;)J
MethodParameters:
Name Flags
clazz
private static long shallowSizeOfArray(java.lang.Object);
descriptor: (Ljava/lang/Object;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=5, args_size=1
start local 0 0: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_ARRAY_HEADER:I
i2l
lstore 1
start local 1 1: aload 0
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
istore 3
start local 3 2: iload 3
ifle 8
3: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
astore 4
start local 4 4: aload 4
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 7
5: lload 1
iload 3
i2l
getstatic org.apache.lucene.util.RamUsageEstimator.primitiveSizes:Ljava/util/Map;
aload 4
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
i2l
lmul
ladd
lstore 1
6: goto 8
7: StackMap locals: long int java.lang.Class
StackMap stack:
lload 1
getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
i2l
iload 3
i2l
lmul
ladd
lstore 1
end local 4 8: StackMap locals:
StackMap stack:
lload 1
invokestatic org.apache.lucene.util.RamUsageEstimator.alignObjectSize:(J)J
lreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 array Ljava/lang/Object;
1 9 1 size J
2 9 3 len I
4 8 4 arrayElementClazz Ljava/lang/Class<*>;
MethodParameters:
Name Flags
array
static long adjustForField(long, java.lang.reflect.Field);
descriptor: (JLjava/lang/reflect/Field;)J
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 2 0: aload 2
invokevirtual java.lang.reflect.Field.getType:()Ljava/lang/Class;
astore 3
start local 3 1: aload 3
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 2
getstatic org.apache.lucene.util.RamUsageEstimator.primitiveSizes:Ljava/util/Map;
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
goto 3
StackMap locals: java.lang.Class
StackMap stack:
2: getstatic org.apache.lucene.util.RamUsageEstimator.NUM_BYTES_OBJECT_REF:I
StackMap locals:
StackMap stack: int
3: istore 4
start local 4 4: lload 0
iload 4
i2l
ladd
lreturn
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 sizeSoFar J
0 5 2 f Ljava/lang/reflect/Field;
1 5 3 type Ljava/lang/Class<*>;
4 5 4 fsize I
MethodParameters:
Name Flags
sizeSoFar
f final
public static java.lang.String humanReadableUnits(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
1: new java.text.DecimalFormat
dup
ldc "0.#"
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokestatic java.text.DecimalFormatSymbols.getInstance:(Ljava/util/Locale;)Ljava/text/DecimalFormatSymbols;
invokespecial java.text.DecimalFormat.<init>:(Ljava/lang/String;Ljava/text/DecimalFormatSymbols;)V
2: invokestatic org.apache.lucene.util.RamUsageEstimator.humanReadableUnits:(JLjava/text/DecimalFormat;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bytes J
MethodParameters:
Name Flags
bytes
public static java.lang.String humanReadableUnits(long, java.text.DecimalFormat);
descriptor: (JLjava/text/DecimalFormat;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 2 0: lload 0
ldc 1073741824
ldiv
lconst_0
lcmp
ifle 2
1: new java.lang.StringBuilder
dup
aload 2
lload 0
l2f
ldc 1.07374182E9
fdiv
f2d
invokevirtual java.text.DecimalFormat.format:(D)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " GB"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
lload 0
ldc 1048576
ldiv
lconst_0
lcmp
ifle 4
3: new java.lang.StringBuilder
dup
aload 2
lload 0
l2f
ldc 1048576.0
fdiv
f2d
invokevirtual java.text.DecimalFormat.format:(D)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " MB"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
lload 0
ldc 1024
ldiv
lconst_0
lcmp
ifle 6
5: new java.lang.StringBuilder
dup
aload 2
lload 0
l2f
ldc 1024.0
fdiv
f2d
invokevirtual java.text.DecimalFormat.format:(D)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " KB"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
6: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
lload 0
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 bytes J
0 7 2 df Ljava/text/DecimalFormat;
MethodParameters:
Name Flags
bytes
df
public static long sizeOf(org.apache.lucene.util.Accountable[]);
descriptor: ([Lorg/apache/lucene/util/Accountable;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokestatic org.apache.lucene.util.RamUsageEstimator.shallowSizeOf:([Ljava/lang/Object;)J
lstore 1
start local 1 1: aload 0
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 6
StackMap locals: org.apache.lucene.util.Accountable[] long top int int org.apache.lucene.util.Accountable[]
StackMap stack:
2: aload 6
iload 4
aaload
astore 3
start local 3 3: aload 3
ifnull 5
4: lload 1
aload 3
invokeinterface org.apache.lucene.util.Accountable.ramBytesUsed:()J
ladd
lstore 1
end local 3 5: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
6: iload 4
iload 5
if_icmplt 2
7: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 accountables [Lorg/apache/lucene/util/Accountable;
1 8 1 size J
3 5 3 accountable Lorg/apache/lucene/util/Accountable;
MethodParameters:
Name Flags
accountables
}
SourceFile: "RamUsageEstimator.java"
NestMembers:
org.apache.lucene.util.RamUsageEstimator$1 org.apache.lucene.util.RamUsageEstimator$RamUsageQueryVisitor
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
org.apache.lucene.util.RamUsageEstimator$1
private final RamUsageQueryVisitor = org.apache.lucene.util.RamUsageEstimator$RamUsageQueryVisitor of org.apache.lucene.util.RamUsageEstimator