206 int process_completed_threshold, |
206 int process_completed_threshold, |
207 Mutex* lock) { |
207 Mutex* lock) { |
208 PtrQueueSet::initialize(cbl_mon, fl_lock, process_completed_threshold, -1); |
208 PtrQueueSet::initialize(cbl_mon, fl_lock, process_completed_threshold, -1); |
209 _shared_satb_queue.set_lock(lock); |
209 _shared_satb_queue.set_lock(lock); |
210 if (ParallelGCThreads > 0) { |
210 if (ParallelGCThreads > 0) { |
211 _par_closures = NEW_C_HEAP_ARRAY(ObjectClosure*, ParallelGCThreads); |
211 _par_closures = NEW_C_HEAP_ARRAY(ObjectClosure*, ParallelGCThreads, mtGC); |
212 } |
212 } |
213 } |
213 } |
214 |
214 |
215 void SATBMarkQueueSet::handle_zero_index_for_thread(JavaThread* t) { |
215 void SATBMarkQueueSet::handle_zero_index_for_thread(JavaThread* t) { |
216 DEBUG_ONLY(t->satb_mark_queue().verify_oops_in_buffer();) |
216 DEBUG_ONLY(t->satb_mark_queue().verify_oops_in_buffer();) |