hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp
changeset 36368 569d6e8072a9
parent 36367 313c87c050f7
child 36370 9333c14b078f
equal deleted inserted replaced
36367:313c87c050f7 36368:569d6e8072a9
  4592 
  4592 
  4593   double ref_enq_time = os::elapsedTime() - ref_enq_start;
  4593   double ref_enq_time = os::elapsedTime() - ref_enq_start;
  4594   g1_policy()->phase_times()->record_ref_enq_time(ref_enq_time * 1000.0);
  4594   g1_policy()->phase_times()->record_ref_enq_time(ref_enq_time * 1000.0);
  4595 }
  4595 }
  4596 
  4596 
       
  4597 void G1CollectedHeap::merge_per_thread_state_info(G1ParScanThreadStateSet* per_thread_states) {
       
  4598   double merge_pss_time_start = os::elapsedTime();
       
  4599   per_thread_states->flush();
       
  4600   g1_policy()->phase_times()->record_merge_pss_time_ms((os::elapsedTime() - merge_pss_time_start) * 1000.0);
       
  4601 }
       
  4602 
  4597 void G1CollectedHeap::pre_evacuate_collection_set() {
  4603 void G1CollectedHeap::pre_evacuate_collection_set() {
  4598   _expand_heap_after_alloc_failure = true;
  4604   _expand_heap_after_alloc_failure = true;
  4599   _evacuation_failed = false;
  4605   _evacuation_failed = false;
  4600 
  4606 
  4601   // Disable the hot card cache.
  4607   // Disable the hot card cache.
  4694     g1_policy()->phase_times()->record_ref_enq_time(0);
  4700     g1_policy()->phase_times()->record_ref_enq_time(0);
  4695   }
  4701   }
  4696 
  4702 
  4697   _allocator->release_gc_alloc_regions(evacuation_info);
  4703   _allocator->release_gc_alloc_regions(evacuation_info);
  4698 
  4704 
  4699   per_thread_states->flush();
  4705   merge_per_thread_state_info(per_thread_states);
  4700 
  4706 
  4701   record_obj_copy_mem_stats();
  4707   record_obj_copy_mem_stats();
  4702 
  4708 
  4703   _survivor_evac_stats.adjust_desired_plab_sz();
  4709   _survivor_evac_stats.adjust_desired_plab_sz();
  4704   _old_evac_stats.adjust_desired_plab_sz();
  4710   _old_evac_stats.adjust_desired_plab_sz();