public abstract class sun.jvm.hotspot.gc.shared.GenCollectedHeap extends sun.jvm.hotspot.gc.shared.CollectedHeap
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.jvm.hotspot.gc.shared.GenCollectedHeap
super_class: sun.jvm.hotspot.gc.shared.CollectedHeap
{
private static sun.jvm.hotspot.types.AddressField youngGenField;
descriptor: Lsun/jvm/hotspot/types/AddressField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.types.AddressField oldGenField;
descriptor: Lsun/jvm/hotspot/types/AddressField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.types.AddressField youngGenSpecField;
descriptor: Lsun/jvm/hotspot/types/AddressField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.types.AddressField oldGenSpecField;
descriptor: Lsun/jvm/hotspot/types/AddressField;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static sun.jvm.hotspot.gc.shared.GenerationFactory genFactory;
descriptor: Lsun/jvm/hotspot/gc/shared/GenerationFactory;
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.gc.shared.GenCollectedHeap$1
dup
invokespecial sun.jvm.hotspot.gc.shared.GenCollectedHeap$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=2, locals=2, args_size=1
start local 0 0: aload 0
ldc "GenCollectedHeap"
invokeinterface sun.jvm.hotspot.types.TypeDataBase.lookupType:(Ljava/lang/String;)Lsun/jvm/hotspot/types/Type;
astore 1
start local 1 1: aload 1
ldc "_young_gen"
invokeinterface sun.jvm.hotspot.types.Type.getAddressField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/AddressField;
putstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.youngGenField:Lsun/jvm/hotspot/types/AddressField;
2: aload 1
ldc "_old_gen"
invokeinterface sun.jvm.hotspot.types.Type.getAddressField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/AddressField;
putstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.oldGenField:Lsun/jvm/hotspot/types/AddressField;
3: aload 1
ldc "_young_gen_spec"
invokeinterface sun.jvm.hotspot.types.Type.getAddressField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/AddressField;
putstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.youngGenSpecField:Lsun/jvm/hotspot/types/AddressField;
4: aload 1
ldc "_old_gen_spec"
invokeinterface sun.jvm.hotspot.types.Type.getAddressField:(Ljava/lang/String;)Lsun/jvm/hotspot/types/AddressField;
putstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.oldGenSpecField:Lsun/jvm/hotspot/types/AddressField;
5: new sun.jvm.hotspot.gc.shared.GenerationFactory
dup
invokespecial sun.jvm.hotspot.gc.shared.GenerationFactory.<init>:()V
putstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.genFactory:Lsun/jvm/hotspot/gc/shared/GenerationFactory;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 db Lsun/jvm/hotspot/types/TypeDataBase;
1 7 1 type Lsun/jvm/hotspot/types/Type;
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.gc.shared.CollectedHeap.<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/gc/shared/GenCollectedHeap;
0 2 1 addr Lsun/jvm/hotspot/debugger/Address;
MethodParameters:
Name Flags
addr
public int nGens();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_2
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
public sun.jvm.hotspot.gc.shared.Generation getGen(int);
descriptor: (I)Lsun/jvm/hotspot/gc/shared/Generation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.jvm.hotspot.utilities.Assert.ASSERTS_ENABLED:Z
ifeq 6
1: iload 1
ifeq 2
iload 1
iconst_1
if_icmpeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: new java.lang.StringBuilder
dup
ldc "Index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: ldc " out of range (should be 0 or 1)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokestatic sun.jvm.hotspot.utilities.Assert.that:(ZLjava/lang/String;)V
6: StackMap locals:
StackMap stack:
iload 1
tableswitch { // 0 - 1
0: 7
1: 8
default: 9
}
7: StackMap locals:
StackMap stack:
getstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.youngGenField:Lsun/jvm/hotspot/types/AddressField;
aload 0
getfield sun.jvm.hotspot.gc.shared.GenCollectedHeap.addr:Lsun/jvm/hotspot/debugger/Address;
invokeinterface sun.jvm.hotspot.types.AddressField.getValue:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/debugger/Address;
invokestatic sun.jvm.hotspot.gc.shared.GenerationFactory.newObject:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/gc/shared/Generation;
areturn
8: StackMap locals:
StackMap stack:
getstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.oldGenField:Lsun/jvm/hotspot/types/AddressField;
aload 0
getfield sun.jvm.hotspot.gc.shared.GenCollectedHeap.addr:Lsun/jvm/hotspot/debugger/Address;
invokeinterface sun.jvm.hotspot.types.AddressField.getValue:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/debugger/Address;
invokestatic sun.jvm.hotspot.gc.shared.GenerationFactory.newObject:(Lsun/jvm/hotspot/debugger/Address;)Lsun/jvm/hotspot/gc/shared/Generation;
areturn
9: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
0 10 1 i I
MethodParameters:
Name Flags
i
public boolean isIn(sun.jvm.hotspot.debugger.Address);
descriptor: (Lsun/jvm/hotspot/debugger/Address;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.getGen:(I)Lsun/jvm/hotspot/gc/shared/Generation;
astore 3
start local 3 3: aload 3
aload 1
invokevirtual sun.jvm.hotspot.gc.shared.Generation.isIn:(Lsun/jvm/hotspot/debugger/Address;)Z
ifeq 5
4: iconst_1
ireturn
end local 3 5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.nGens:()I
if_icmplt 2
end local 2 7: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
0 8 1 a Lsun/jvm/hotspot/debugger/Address;
1 7 2 i I
3 5 3 gen Lsun/jvm/hotspot/gc/shared/Generation;
MethodParameters:
Name Flags
a
public long capacity();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: long int
StackMap stack:
lload 1
aload 0
iload 3
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.getGen:(I)Lsun/jvm/hotspot/gc/shared/Generation;
invokevirtual sun.jvm.hotspot.gc.shared.Generation.capacity:()J
ladd
lstore 1
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
aload 0
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.nGens:()I
if_icmplt 3
end local 3 6: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
1 7 1 capacity J
2 6 3 i I
public long used();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: iconst_0
istore 3
start local 3 2: goto 5
3: StackMap locals: long int
StackMap stack:
lload 1
aload 0
iload 3
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.getGen:(I)Lsun/jvm/hotspot/gc/shared/Generation;
invokevirtual sun.jvm.hotspot.gc.shared.Generation.used:()J
ladd
lstore 1
4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
aload 0
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.nGens:()I
if_icmplt 3
end local 3 6: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
1 7 1 used J
2 6 3 i I
sun.jvm.hotspot.gc.shared.GenerationSpec spec(int);
descriptor: (I)Lsun/jvm/hotspot/gc/shared/GenerationSpec;
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic sun.jvm.hotspot.utilities.Assert.ASSERTS_ENABLED:Z
ifeq 6
1: iload 1
ifeq 2
iload 1
iconst_1
if_icmpeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: new java.lang.StringBuilder
dup
ldc "Index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
4: ldc " out of range (should be 0 or 1)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokestatic sun.jvm.hotspot.utilities.Assert.that:(ZLjava/lang/String;)V
6: StackMap locals:
StackMap stack:
iload 1
ifeq 8
iload 1
iconst_1
if_icmpeq 8
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
iload 1
ifne 13
9: ldc Lsun/jvm/hotspot/gc/shared/GenerationSpec;
10: getstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.youngGenSpecField:Lsun/jvm/hotspot/types/AddressField;
invokeinterface sun.jvm.hotspot.types.AddressField.getAddress:()Lsun/jvm/hotspot/debugger/Address;
11: invokestatic sun.jvm.hotspot.runtime.VMObjectFactory.newObject:(Ljava/lang/Class;Lsun/jvm/hotspot/debugger/Address;)Ljava/lang/Object;
12: checkcast sun.jvm.hotspot.gc.shared.GenerationSpec
areturn
13: StackMap locals:
StackMap stack:
ldc Lsun/jvm/hotspot/gc/shared/GenerationSpec;
14: getstatic sun.jvm.hotspot.gc.shared.GenCollectedHeap.oldGenSpecField:Lsun/jvm/hotspot/types/AddressField;
invokeinterface sun.jvm.hotspot.types.AddressField.getAddress:()Lsun/jvm/hotspot/debugger/Address;
15: invokestatic sun.jvm.hotspot.runtime.VMObjectFactory.newObject:(Ljava/lang/Class;Lsun/jvm/hotspot/debugger/Address;)Ljava/lang/Object;
16: checkcast sun.jvm.hotspot.gc.shared.GenerationSpec
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
0 17 1 level I
MethodParameters:
Name Flags
level
public void printOn(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 1
new java.lang.StringBuilder
dup
ldc "Gen "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.print:(Ljava/lang/String;)V
3: aload 0
iload 2
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.getGen:(I)Lsun/jvm/hotspot/gc/shared/Generation;
aload 1
invokevirtual sun.jvm.hotspot.gc.shared.Generation.printOn:(Ljava/io/PrintStream;)V
4: aload 1
new java.lang.StringBuilder
dup
ldc "Invocations: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iload 2
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.getGen:(I)Lsun/jvm/hotspot/gc/shared/Generation;
invokevirtual sun.jvm.hotspot.gc.shared.Generation.invocations:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: aload 1
invokevirtual java.io.PrintStream.println:()V
6: iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
invokevirtual sun.jvm.hotspot.gc.shared.GenCollectedHeap.nGens:()I
if_icmplt 2
end local 2 8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/jvm/hotspot/gc/shared/GenCollectedHeap;
0 9 1 tty Ljava/io/PrintStream;
1 8 2 i I
MethodParameters:
Name Flags
tty
}
SourceFile: "GenCollectedHeap.java"
NestMembers:
sun.jvm.hotspot.gc.shared.GenCollectedHeap$1
InnerClasses:
sun.jvm.hotspot.gc.shared.GenCollectedHeap$1