comparison src/share/vm/gc_implementation/parNew/parCardTableModRefBS.cpp @ 4728:441e946dc1af

7121618: Change type of number of GC workers to unsigned int. Summary: Change variables representing the number of GC workers to uint from int and size_t. Change the parameter in work(int i) to work(uint worker_id). Reviewed-by: brutisso, tonyp
author jmasa
date Wed, 14 Dec 2011 13:34:57 -0800
parents bca17e38de00
children 33df1aeaebbf d2a62e0f25eb
comparison
equal deleted inserted replaced
4727:67fdcb391461 4728:441e946dc1af
54 size_t lowest_non_clean_chunk_size; 54 size_t lowest_non_clean_chunk_size;
55 get_LNC_array_for_space(sp, lowest_non_clean, 55 get_LNC_array_for_space(sp, lowest_non_clean,
56 lowest_non_clean_base_chunk_index, 56 lowest_non_clean_base_chunk_index,
57 lowest_non_clean_chunk_size); 57 lowest_non_clean_chunk_size);
58 58
59 int n_strides = n_threads * ParGCStridesPerThread; 59 uint n_strides = n_threads * ParGCStridesPerThread;
60 SequentialSubTasksDone* pst = sp->par_seq_tasks(); 60 SequentialSubTasksDone* pst = sp->par_seq_tasks();
61 // Sets the condition for completion of the subtask (how many threads 61 // Sets the condition for completion of the subtask (how many threads
62 // need to finish in order to be done). 62 // need to finish in order to be done).
63 pst->set_n_threads(n_threads); 63 pst->set_n_threads(n_threads);
64 pst->set_n_tasks(n_strides); 64 pst->set_n_tasks(n_strides);
65 65
66 int stride = 0; 66 uint stride = 0;
67 while (!pst->is_task_claimed(/* reference */ stride)) { 67 while (!pst->is_task_claimed(/* reference */ stride)) {
68 process_stride(sp, mr, stride, n_strides, cl, ct, 68 process_stride(sp, mr, stride, n_strides, cl, ct,
69 lowest_non_clean, 69 lowest_non_clean,
70 lowest_non_clean_base_chunk_index, 70 lowest_non_clean_base_chunk_index,
71 lowest_non_clean_chunk_size); 71 lowest_non_clean_chunk_size);