src/share/vm/gc/g1/g1CollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/gc/g1/g1CollectorPolicy.cpp	Thu Feb 11 13:39:11 2016
--- new/src/share/vm/gc/g1/g1CollectorPolicy.cpp	Thu Feb 11 13:39:10 2016

*** 1244,1276 **** --- 1244,1276 ---- if (G1UseAdaptiveConcRefinement) { const int k_gy = 3, k_gr = 6; const double inc_k = 1.1, dec_k = 0.9; ! int g = cg1r->green_zone(); ! size_t g = cg1r->green_zone(); if (update_rs_time > goal_ms) { ! g = (int)(g * dec_k); // Can become 0, that's OK. That would mean a mutator-only processing. ! g = (size_t)(g * dec_k); // Can become 0, that's OK. That would mean a mutator-only processing. } else { if (update_rs_time < goal_ms && update_rs_processed_buffers > g) { ! g = (int)MAX2(g * inc_k, g + 1.0); ! g = (size_t)MAX2(g * inc_k, g + 1.0); } } // Change the refinement threads params cg1r->set_green_zone(g); cg1r->set_yellow_zone(g * k_gy); cg1r->set_red_zone(g * k_gr); cg1r->reinitialize_threads(); ! int processing_threshold_delta = MAX2((int)(cg1r->green_zone() * _predictor.sigma()), 1); ! int processing_threshold = MIN2(cg1r->green_zone() + processing_threshold_delta, ! size_t processing_threshold_delta = MAX2((int)(cg1r->green_zone() * _predictor.sigma()), 1); ! size_t processing_threshold = MIN2(cg1r->green_zone() + processing_threshold_delta, cg1r->yellow_zone()); // Change the barrier params dcqs.set_process_completed_threshold(processing_threshold); dcqs.set_max_completed_queue(cg1r->red_zone()); } ! int curr_queue_size = dcqs.completed_buffers_num(); ! size_t curr_queue_size = dcqs.completed_buffers_num(); if (curr_queue_size >= cg1r->yellow_zone()) { dcqs.set_completed_queue_padding(curr_queue_size); } else { dcqs.set_completed_queue_padding(0); }

src/share/vm/gc/g1/g1CollectorPolicy.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File