33 {} |
33 {} |
34 |
34 |
35 void ShenandoahSATBMarkQueueSet::initialize(ShenandoahHeap* const heap, |
35 void ShenandoahSATBMarkQueueSet::initialize(ShenandoahHeap* const heap, |
36 Monitor* cbl_mon, |
36 Monitor* cbl_mon, |
37 int process_completed_threshold, |
37 int process_completed_threshold, |
38 uint buffer_enqueue_threshold_percentage, |
38 uint buffer_enqueue_threshold_percentage) { |
39 Mutex* lock) { |
|
40 SATBMarkQueueSet::initialize(cbl_mon, |
39 SATBMarkQueueSet::initialize(cbl_mon, |
41 &_satb_mark_queue_buffer_allocator, |
40 &_satb_mark_queue_buffer_allocator, |
42 process_completed_threshold, |
41 process_completed_threshold, |
43 buffer_enqueue_threshold_percentage, |
42 buffer_enqueue_threshold_percentage); |
44 lock); |
|
45 _heap = heap; |
43 _heap = heap; |
46 } |
44 } |
47 |
45 |
48 SATBMarkQueue& ShenandoahSATBMarkQueueSet::satb_queue_for_thread(JavaThread* const t) const { |
46 SATBMarkQueue& ShenandoahSATBMarkQueueSet::satb_queue_for_thread(Thread* const t) const { |
49 return ShenandoahThreadLocalData::satb_mark_queue(t); |
47 return ShenandoahThreadLocalData::satb_mark_queue(t); |
50 } |
48 } |
51 |
49 |
52 template <bool RESOLVE> |
50 template <bool RESOLVE> |
53 class ShenandoahSATBMarkQueueFilterFn { |
51 class ShenandoahSATBMarkQueueFilterFn { |