comparison src/share/vm/gc_implementation/g1/satbQueue.cpp @ 17844:8847586c9037

8016302: Change type of the number of GC workers to unsigned int (2) Reviewed-by: tschatzl, jwilhelm
author vkempik
date Thu, 03 Apr 2014 17:49:31 +0400
parents f99e331f6ef6
children 78bbf4d43a14
comparison
equal deleted inserted replaced
17843:81d7a4b28dc5 17844:8847586c9037
288 t->satb_mark_queue().apply_closure_and_empty(_closure); 288 t->satb_mark_queue().apply_closure_and_empty(_closure);
289 } 289 }
290 shared_satb_queue()->apply_closure_and_empty(_closure); 290 shared_satb_queue()->apply_closure_and_empty(_closure);
291 } 291 }
292 292
293 void SATBMarkQueueSet::par_iterate_closure_all_threads(int worker) { 293 void SATBMarkQueueSet::par_iterate_closure_all_threads(uint worker) {
294 SharedHeap* sh = SharedHeap::heap(); 294 SharedHeap* sh = SharedHeap::heap();
295 int parity = sh->strong_roots_parity(); 295 int parity = sh->strong_roots_parity();
296 296
297 for(JavaThread* t = Threads::first(); t; t = t->next()) { 297 for(JavaThread* t = Threads::first(); t; t = t->next()) {
298 if (t->claim_oops_do(true, parity)) { 298 if (t->claim_oops_do(true, parity)) {
313 shared_satb_queue()->apply_closure_and_empty(_par_closures[worker]); 313 shared_satb_queue()->apply_closure_and_empty(_par_closures[worker]);
314 } 314 }
315 } 315 }
316 316
317 bool SATBMarkQueueSet::apply_closure_to_completed_buffer_work(bool par, 317 bool SATBMarkQueueSet::apply_closure_to_completed_buffer_work(bool par,
318 int worker) { 318 uint worker) {
319 BufferNode* nd = NULL; 319 BufferNode* nd = NULL;
320 { 320 {
321 MutexLockerEx x(_cbl_mon, Mutex::_no_safepoint_check_flag); 321 MutexLockerEx x(_cbl_mon, Mutex::_no_safepoint_check_flag);
322 if (_completed_buffers_head != NULL) { 322 if (_completed_buffers_head != NULL) {
323 nd = _completed_buffers_head; 323 nd = _completed_buffers_head;