equal
deleted
inserted
replaced
66 } |
66 } |
67 |
67 |
68 void ConcurrentG1RefineThread::initialize() { |
68 void ConcurrentG1RefineThread::initialize() { |
69 // Current thread activation threshold |
69 // Current thread activation threshold |
70 _threshold = MIN2(cg1r()->thread_threshold_step() * (_worker_id + 1) + cg1r()->green_zone(), |
70 _threshold = MIN2(cg1r()->thread_threshold_step() * (_worker_id + 1) + cg1r()->green_zone(), |
71 cg1r()->yellow_zone()); |
71 cg1r()->yellow_zone()); |
72 // A thread deactivates once the number of buffer reached a deactivation threshold |
72 // A thread deactivates once the number of buffer reached a deactivation threshold |
73 _deactivation_threshold = |
73 _deactivation_threshold = |
74 MAX2(_threshold - MIN2(_threshold, cg1r()->thread_threshold_step()), |
74 MAX2(_threshold - MIN2(_threshold, cg1r()->thread_threshold_step()), |
75 cg1r()->green_zone()); |
75 cg1r()->green_zone()); |
76 } |
76 } |