agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java
agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java
Print this page
rev 7211 : [mq]: remove_ngen
rev 7213 : imported patch move_genspecs
rev 7214 : imported patch remove_n_gen
*** 32,42 ****
import sun.jvm.hotspot.runtime.*;
import sun.jvm.hotspot.types.*;
import sun.jvm.hotspot.utilities.*;
public class GenCollectedHeap extends SharedHeap {
- private static CIntegerField nGensField;
private static AddressField youngGenField;
private static AddressField oldGenField;
private static AddressField youngGenSpecField;
private static AddressField oldGenSpecField;
--- 32,41 ----
*** 52,62 ****
}
private static synchronized void initialize(TypeDataBase db) {
Type type = db.lookupType("GenCollectedHeap");
- nGensField = type.getCIntegerField("_n_gens");
youngGenField = type.getAddressField("_young_gen");
oldGenField = type.getAddressField("_old_gen");
genFactory = new GenerationFactory();
--- 51,60 ----
*** 68,78 ****
public GenCollectedHeap(Address addr) {
super(addr);
}
public int nGens() {
! return (int) nGensField.getValue(addr);
}
public Generation getGen(int i) {
if (Assert.ASSERTS_ENABLED) {
Assert.that((i >= 0) && (i < nGens()), "Index " + i +
--- 66,76 ----
public GenCollectedHeap(Address addr) {
super(addr);
}
public int nGens() {
! return 2;
}
public Generation getGen(int i) {
if (Assert.ASSERTS_ENABLED) {
Assert.that((i >= 0) && (i < nGens()), "Index " + i +
agent/src/share/classes/sun/jvm/hotspot/memory/GenCollectedHeap.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File