equal
deleted
inserted
replaced
95 size_t yellow_zone, |
95 size_t yellow_zone, |
96 size_t red_zone, |
96 size_t red_zone, |
97 size_t min_yellow_zone_size); |
97 size_t min_yellow_zone_size); |
98 |
98 |
99 // Update green/yellow/red zone values based on how well goals are being met. |
99 // Update green/yellow/red zone values based on how well goals are being met. |
100 void update_zones(double update_rs_time, |
100 void update_zones(double log_buffer_scan_time, |
101 size_t update_rs_processed_buffers, |
101 size_t processed_log_buffers, |
102 double goal_ms); |
102 double goal_ms); |
103 |
103 |
104 static uint worker_id_offset(); |
104 static uint worker_id_offset(); |
105 void maybe_activate_more_threads(uint worker_id, size_t num_cur_buffers); |
105 void maybe_activate_more_threads(uint worker_id, size_t num_cur_buffers); |
106 |
106 |
113 static G1ConcurrentRefine* create(jint* ecode); |
113 static G1ConcurrentRefine* create(jint* ecode); |
114 |
114 |
115 void stop(); |
115 void stop(); |
116 |
116 |
117 // Adjust refinement thresholds based on work done during the pause and the goal time. |
117 // Adjust refinement thresholds based on work done during the pause and the goal time. |
118 void adjust(double update_rs_time, size_t update_rs_processed_buffers, double goal_ms); |
118 void adjust(double log_buffer_scan_time, size_t processed_log_buffers, double goal_ms); |
119 |
119 |
120 size_t activation_threshold(uint worker_id) const; |
120 size_t activation_threshold(uint worker_id) const; |
121 size_t deactivation_threshold(uint worker_id) const; |
121 size_t deactivation_threshold(uint worker_id) const; |
122 // Perform a single refinement step. Called by the refinement threads when woken up. |
122 // Perform a single refinement step. Called by the refinement threads when woken up. |
123 bool do_refinement_step(uint worker_id); |
123 bool do_refinement_step(uint worker_id); |