< prev index next >

agent/src/share/classes/sun/jvm/hotspot/gc/shared/Generation.java

Print this page

        

@@ -47,11 +47,10 @@
 
 
 public abstract class Generation extends VMObject {
   private static long          reservedFieldOffset;
   private static long          virtualSpaceFieldOffset;
-  private static CIntegerField levelField;
   protected static final int  K = 1024;
   // Fields for class StatRecord
   private static Field         statRecordField;
   private static CIntegerField invocationField;
 

@@ -73,11 +72,10 @@
   private static synchronized void initialize(TypeDataBase db) {
     Type type = db.lookupType("Generation");
 
     reservedFieldOffset     = type.getField("_reserved").getOffset();
     virtualSpaceFieldOffset = type.getField("_virtual_space").getOffset();
-    levelField              = type.getCIntegerField("_level");
     // StatRecord
     statRecordField         = type.getField("_stat_record");
     type                    = db.lookupType("Generation::StatRecord");
     invocationField         = type.getCIntegerField("invocations");
 

@@ -128,18 +126,10 @@
      } else {
         throw new RuntimeException("should not reach here");
      }
   }
 
-  public GenerationSpec spec() {
-    return ((GenCollectedHeap) VM.getVM().getUniverse().heap()).spec(level());
-  }
-
-  public int level() {
-    return (int) levelField.getValue(addr);
-  }
-
   public int invocations() {
     return getStatRecord().getInvocations();
   }
 
   /** The maximum number of object bytes the generation can currently
< prev index next >