hotspot/src/share/vm/memory/genCollectedHeap.cpp
changeset 27903 14c6e2f23fa0
parent 27898 813ad96387b3
child 27904 d606512952cc
equal deleted inserted replaced
27902:fe89161ff160 27903:14c6e2f23fa0
   180 
   180 
   181 void GenCollectedHeap::post_initialize() {
   181 void GenCollectedHeap::post_initialize() {
   182   SharedHeap::post_initialize();
   182   SharedHeap::post_initialize();
   183   GenCollectorPolicy *policy = (GenCollectorPolicy *)collector_policy();
   183   GenCollectorPolicy *policy = (GenCollectorPolicy *)collector_policy();
   184   guarantee(policy->is_generation_policy(), "Illegal policy type");
   184   guarantee(policy->is_generation_policy(), "Illegal policy type");
   185   DefNewGeneration* def_new_gen = get_gen(0)->as_DefNewGeneration();
   185   assert((get_gen(0)->kind() == Generation::DefNew) ||
       
   186          (get_gen(0)->kind() == Generation::ParNew),
       
   187     "Wrong youngest generation type");
       
   188   DefNewGeneration* def_new_gen = (DefNewGeneration*)get_gen(0);
   186 
   189 
   187   Generation* old_gen = get_gen(1);
   190   Generation* old_gen = get_gen(1);
   188   assert(old_gen->kind() == Generation::ConcurrentMarkSweep ||
   191   assert(old_gen->kind() == Generation::ConcurrentMarkSweep ||
   189          old_gen->kind() == Generation::MarkSweepCompact,
   192          old_gen->kind() == Generation::MarkSweepCompact,
   190     "Wrong generation kind");
   193     "Wrong generation kind");