< prev index next >

src/share/vm/memory/genCollectedHeap.hpp

Print this page

        

@@ -49,23 +49,17 @@
   friend class VM_HeapDumper;
   friend class HeapInspection;
   friend class GCCauseSetter;
   friend class VMStructs;
 public:
-  enum SomeConstants {
-    max_gens = 10
-  };
-
   friend class VM_PopulateDumpSharedSpace;
 
  protected:
   // Fields:
   static GenCollectedHeap* _gch;
 
  private:
-  int _n_gens;
-
   Generation* _young_gen;
   Generation* _old_gen;
 
   // The singleton Gen Remembered Set.
   GenRemSet* _rem_set;

@@ -368,15 +362,10 @@
   // Return "true" if all generations have reached the
   // maximal committed limit that they can reach, without a garbage
   // collection.
   virtual bool is_maximal_no_gc() const;
 
-  int n_gens() const {
-    assert(_n_gens == gen_policy()->number_of_generations(), "Sanity");
-    return _n_gens;
-  }
-
   // This function returns the "GenRemSet" object that allows us to scan
   // generations in a fully generational heap.
   GenRemSet* rem_set() { return _rem_set; }
 
   // Convenience function to be used in situations where the heap type can be
< prev index next >