public class sun.jvm.hotspot.oops.ConstantPoolCache extends sun.jvm.hotspot.oops.Metadata
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.oops.ConstantPoolCache
super_class: sun.jvm.hotspot.oops.Metadata
{
private static sun.jvm.hotspot.oops.MetadataField constants;
descriptor: Lsun/jvm/hotspot/oops/MetadataField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static long baseOffset;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static long elementSize;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.oops.CIntField length;
descriptor: Lsun/jvm/hotspot/oops/CIntField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static long intSize;
descriptor: J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.jvm.hotspot.oops.ConstantPoolCache$1
dup
invokespecial sun.jvm.hotspot.oops.ConstantPoolCache$1.<init>:()V
invokestatic sun.jvm.hotspot.runtime.VM.registerVMInitializedObserver:(Ljava/util/Observer;)V
1: return
LocalVariableTable:
Start End Slot Name Signature
private static synchronized void initialize(sun.jvm.hotspot.types.TypeDataBase);
descriptor: (Lsun/jvm/hotspot/types/TypeDataBase;)V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
ldc "ConstantPoolCache"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupType:(Ljava/lang/String;)Lsun/jvm/hotspot/types/Type;
astore 1
start local 1 1: new sun.jvm.hotspot.oops.MetadataField
dup
aload 1
ldc "_constant_pool"
invokeinterface sun.jvm.hotspot.types.Type.getAddressField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/AddressField;
lconst_0
invokespecial sun.jvm.hotspot.oops.MetadataField.<init>:(Lsun/jvm/hotspot/types/AddressField;J)V
putstatic sun.jvm.hotspot.oops.ConstantPoolCache.constants:Lsun/jvm/hotspot/oops/MetadataField;
2: aload 1
invokeinterface sun.jvm.hotspot.types.Type.getSize:()J
putstatic sun.jvm.hotspot.oops.ConstantPoolCache.baseOffset:J
3: aload 0
ldc "ConstantPoolCacheEntry"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupType:(Ljava/lang/String;)Lsun/jvm/hotspot/types/Type;
astore 2
start local 2 4: aload 2
invokeinterface sun.jvm.hotspot.types.Type.getSize:()J
putstatic sun.jvm.hotspot.oops.ConstantPoolCache.elementSize:J
5: new sun.jvm.hotspot.oops.CIntField
dup
aload 1
ldc "_length"
invokeinterface sun.jvm.hotspot.types.Type.getCIntegerField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/CIntegerField;
lconst_0
invokespecial sun.jvm.hotspot.oops.CIntField.<init>:(Lsun/jvm/hotspot/types/CIntegerField;J)V
putstatic sun.jvm.hotspot.oops.ConstantPoolCache.length:Lsun/jvm/hotspot/oops/CIntField;
6: invokestatic sun.jvm.hotspot.runtime.VM.getVM:()Lsun/jvm/hotspot/runtime/VM;
invokevirtual sun.jvm.hotspot.runtime.VM.getObjectHeap:()Lsun/jvm/hotspot/oops/ObjectHeap;
invokevirtual sun.jvm.hotspot.oops.ObjectHeap.getIntSize:()J
putstatic sun.jvm.hotspot.oops.ConstantPoolCache.intSize:J
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 db Lsun/jvm/hotspot/types/TypeDataBase;
1 8 1 type Lsun/jvm/hotspot/types/Type;
4 8 2 elType Lsun/jvm/hotspot/types/Type;
Exceptions:
throws sun.jvm.hotspot.types.WrongTypeException
MethodParameters:
Name Flags
db
public void <init>(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.jvm.hotspot.oops.Metadata.<init>:(Lsun/jvm/hotspot/debugger/Address;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
0 2 1 addr Lsun/jvm/hotspot/debugger/Address;
MethodParameters:
Name Flags
addr
public boolean isConstantPoolCache();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
public sun.jvm.hotspot.oops.ConstantPool getConstants();
descriptor: ()Lsun/jvm/hotspot/oops/ConstantPool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.oops.ConstantPoolCache.constants:Lsun/jvm/hotspot/oops/MetadataField;
aload 0
invokevirtual sun.jvm.hotspot.oops.MetadataField.getValue:(Lsun/jvm/hotspot/runtime/VMObject;)Lsun/jvm/hotspot/oops/Metadata;
checkcast sun.jvm.hotspot.oops.ConstantPool
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
public long getSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.oops.ConstantPoolCache.baseOffset:J
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getLength:()I
i2l
getstatic sun.jvm.hotspot.oops.ConstantPoolCache.elementSize:J
lmul
ladd
invokestatic sun.jvm.hotspot.oops.ConstantPoolCache.alignSize:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
public sun.jvm.hotspot.oops.ConstantPoolCacheEntry getEntryAt(int);
descriptor: (I)Lsun/jvm/hotspot/oops/ConstantPoolCacheEntry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iflt 1
iload 1
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getLength:()I
if_icmplt 2
StackMap locals:
StackMap stack:
1: new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
iload 1
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getLength:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new sun.jvm.hotspot.oops.ConstantPoolCacheEntry
dup
aload 0
iload 1
invokespecial sun.jvm.hotspot.oops.ConstantPoolCacheEntry.<init>:(Lsun/jvm/hotspot/oops/ConstantPoolCache;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
0 3 1 i I
MethodParameters:
Name Flags
i
public int getIntAt(int, int);
descriptor: (II)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.jvm.hotspot.oops.ConstantPoolCache.baseOffset:J
iload 1
i2l
getstatic sun.jvm.hotspot.oops.ConstantPoolCache.elementSize:J
lmul
ladd
iload 2
i2l
getstatic sun.jvm.hotspot.oops.ConstantPoolCache.intSize:J
lmul
ladd
lstore 3
start local 3 1: aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getAddress:()Lsun/jvm/hotspot/debugger/Address;
lload 3
getstatic sun.jvm.hotspot.oops.ConstantPoolCache.intSize:J
iconst_1
invokeinterface sun.jvm.hotspot.debugger.Address.getCIntegerAt:(JJZ)J
l2i
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
0 2 1 entry I
0 2 2 fld I
1 2 3 offset J
MethodParameters:
Name Flags
entry
fld
public void printValueOn(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new java.lang.StringBuilder
dup
ldc "ConstantPoolCache for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getConstants:()Lsun/jvm/hotspot/oops/ConstantPool;
invokevirtual sun.jvm.hotspot.oops.ConstantPool.getPoolHolder:()Lsun/jvm/hotspot/oops/InstanceKlass;
invokevirtual sun.jvm.hotspot.oops.InstanceKlass.getName:()Lsun/jvm/hotspot/oops/Symbol;
invokevirtual sun.jvm.hotspot.oops.Symbol.asString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " address = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getAddress:()Lsun/jvm/hotspot/debugger/Address;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " offset = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic sun.jvm.hotspot.oops.ConstantPoolCache.baseOffset:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
0 2 1 tty Ljava/io/PrintStream;
MethodParameters:
Name Flags
tty
public int getLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.jvm.hotspot.oops.ConstantPoolCache.length:Lsun/jvm/hotspot/oops/CIntField;
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getAddress:()Lsun/jvm/hotspot/debugger/Address;
invokevirtual sun.jvm.hotspot.oops.CIntField.getValue:(Lsun/jvm/hotspot/debugger/Address;)J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
public void iterateFields(sun.jvm.hotspot.oops.MetadataVisitor);
descriptor: (Lsun/jvm/hotspot/oops/MetadataVisitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.jvm.hotspot.oops.Metadata.iterateFields:(Lsun/jvm/hotspot/oops/MetadataVisitor;)V
1: aload 1
getstatic sun.jvm.hotspot.oops.ConstantPoolCache.constants:Lsun/jvm/hotspot/oops/MetadataField;
iconst_1
invokeinterface sun.jvm.hotspot.oops.MetadataVisitor.doMetadata:(Lsun/jvm/hotspot/oops/MetadataField;Z)V
2: iconst_0
istore 2
start local 2 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getEntryAt:(I)Lsun/jvm/hotspot/oops/ConstantPoolCacheEntry;
astore 3
start local 3 5: aload 3
aload 1
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCacheEntry.iterateFields:(Lsun/jvm/hotspot/oops/MetadataVisitor;)V
end local 3 6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
invokevirtual sun.jvm.hotspot.oops.ConstantPoolCache.getLength:()I
if_icmplt 4
end local 2 8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/jvm/hotspot/oops/ConstantPoolCache;
0 9 1 visitor Lsun/jvm/hotspot/oops/MetadataVisitor;
3 8 2 i I
5 6 3 entry Lsun/jvm/hotspot/oops/ConstantPoolCacheEntry;
MethodParameters:
Name Flags
visitor
}
SourceFile: "ConstantPoolCache.java"
NestMembers:
sun.jvm.hotspot.oops.ConstantPoolCache$1
InnerClasses:
sun.jvm.hotspot.oops.ConstantPoolCache$1