--- old/src/share/vm/memory/genCollectedHeap.hpp 2015-03-30 23:01:01.000000000 +0200 +++ new/src/share/vm/memory/genCollectedHeap.hpp 2015-03-30 23:01:00.000000000 +0200 @@ -51,10 +51,6 @@ friend class GCCauseSetter; friend class VMStructs; public: - enum SomeConstants { - max_gens = 10 - }; - friend class VM_PopulateDumpSharedSpace; protected: @@ -62,8 +58,6 @@ static GenCollectedHeap* _gch; private: - int _n_gens; - Generation* _young_gen; Generation* _old_gen; @@ -370,11 +364,6 @@ // 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; }