comparison src/share/vm/gc_implementation/g1/g1CollectorPolicy.cpp @ 1261:0414c1049f15

6923991: G1: improve scalability of RSet scanning Summary: Implemented block-based work stealing. Moved copying during the rset scanning phase to the main copying phase. Made the size of rset table depend on the region size. Reviewed-by: apetrusenko, tonyp
author iveresov
date Thu, 11 Feb 2010 15:52:19 -0800
parents 44f61c24ddab
children b81f3572f355
comparison
equal deleted inserted replaced
1260:8859772195c6 1261:0414c1049f15
203 { 203 {
204 // Set up the region size and associated fields. Given that the 204 // Set up the region size and associated fields. Given that the
205 // policy is created before the heap, we have to set this up here, 205 // policy is created before the heap, we have to set this up here,
206 // so it's done as soon as possible. 206 // so it's done as soon as possible.
207 HeapRegion::setup_heap_region_size(Arguments::min_heap_size()); 207 HeapRegion::setup_heap_region_size(Arguments::min_heap_size());
208 HeapRegionRemSet::setup_remset_size();
208 209
209 _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime()); 210 _recent_prev_end_times_for_all_gcs_sec->add(os::elapsedTime());
210 _prev_collection_pause_end_ms = os::elapsedTime() * 1000.0; 211 _prev_collection_pause_end_ms = os::elapsedTime() * 1000.0;
211 212
212 _par_last_ext_root_scan_times_ms = new double[_parallel_gc_threads]; 213 _par_last_ext_root_scan_times_ms = new double[_parallel_gc_threads];