src/hotspot/share/gc/shared/genCollectedHeap.cpp
changeset 48168 cb5d2d4453d0
parent 47819 ee36a8e36561
child 48961 120b61d50f85
equal deleted inserted replaced
48167:f04a848c6f00 48168:cb5d2d4453d0
   141 
   141 
   142   return heap_rs->base();
   142   return heap_rs->base();
   143 }
   143 }
   144 
   144 
   145 void GenCollectedHeap::post_initialize() {
   145 void GenCollectedHeap::post_initialize() {
       
   146   CollectedHeap::post_initialize();
   146   ref_processing_init();
   147   ref_processing_init();
   147   check_gen_kinds();
   148   check_gen_kinds();
   148   DefNewGeneration* def_new_gen = (DefNewGeneration*)_young_gen;
   149   DefNewGeneration* def_new_gen = (DefNewGeneration*)_young_gen;
   149 
   150 
   150   _gen_policy->initialize_size_policy(def_new_gen->eden()->capacity(),
   151   _gen_policy->initialize_size_policy(def_new_gen->eden()->capacity(),
   268                                           bool is_tlab, bool run_verification, bool clear_soft_refs,
   269                                           bool is_tlab, bool run_verification, bool clear_soft_refs,
   269                                           bool restore_marks_for_biased_locking) {
   270                                           bool restore_marks_for_biased_locking) {
   270   FormatBuffer<> title("Collect gen: %s", gen->short_name());
   271   FormatBuffer<> title("Collect gen: %s", gen->short_name());
   271   GCTraceTime(Trace, gc, phases) t1(title);
   272   GCTraceTime(Trace, gc, phases) t1(title);
   272   TraceCollectorStats tcs(gen->counters());
   273   TraceCollectorStats tcs(gen->counters());
   273   TraceMemoryManagerStats tmms(gen->kind(),gc_cause());
   274   TraceMemoryManagerStats tmms(gen->gc_manager(), gc_cause());
   274 
   275 
   275   gen->stat_record()->invocations++;
   276   gen->stat_record()->invocations++;
   276   gen->stat_record()->accumulated_time.start();
   277   gen->stat_record()->accumulated_time.start();
   277 
   278 
   278   // Must be done anew before each collection because
   279   // Must be done anew before each collection because