--- old/src/share/vm/memory/collectorPolicy.hpp 2014-10-17 15:34:50.000000000 +0200 +++ new/src/share/vm/memory/collectorPolicy.hpp 2014-10-17 15:34:50.000000000 +0200 @@ -216,7 +216,8 @@ }; class GenCollectorPolicy : public CollectorPolicy { -friend class TestGenCollectorPolicy; + friend class TestGenCollectorPolicy; + friend class VMStructs; protected: size_t _min_young_size; size_t _initial_young_size; @@ -229,7 +230,8 @@ // time. When using large pages they can differ. size_t _gen_alignment; - GenerationSpec **_generations; + GenerationSpec* _young_gen_spec; + GenerationSpec* _old_gen_spec; // Return true if an allocation should be attempted in the older generation // if it fails in the younger generation. Return false, otherwise. @@ -269,9 +271,14 @@ int number_of_generations() { return 2; } - virtual GenerationSpec **generations() { - assert(_generations != NULL, "Sanity check"); - return _generations; + virtual GenerationSpec* young_gen_spec() const { + assert(_young_gen_spec != NULL, "Sanity check"); + return _young_gen_spec; + } + + virtual GenerationSpec* old_gen_spec() const { + assert(_old_gen_spec != NULL, "Sanity check"); + return _old_gen_spec; } virtual GenCollectorPolicy* as_generation_policy() { return this; }