< prev index next >

src/hotspot/share/gc/shared/satbMarkQueue.cpp

Print this page
rev 52688 : imported patch pqs_threshold_types

*** 111,124 **** _buffer_enqueue_threshold(0) {} void SATBMarkQueueSet::initialize(Monitor* cbl_mon, BufferNode::Allocator* allocator, ! int process_completed_threshold, uint buffer_enqueue_threshold_percentage, Mutex* lock) { ! PtrQueueSet::initialize(cbl_mon, allocator, process_completed_threshold, -1); _shared_satb_queue.set_lock(lock); assert(buffer_size() != 0, "buffer size not initialized"); // Minimum threshold of 1 ensures enqueuing of completely full buffers. size_t size = buffer_size(); size_t enqueue_qty = (size * buffer_enqueue_threshold_percentage) / 100; --- 111,125 ---- _buffer_enqueue_threshold(0) {} void SATBMarkQueueSet::initialize(Monitor* cbl_mon, BufferNode::Allocator* allocator, ! size_t process_completed_buffers_threshold, uint buffer_enqueue_threshold_percentage, Mutex* lock) { ! PtrQueueSet::initialize(cbl_mon, allocator); ! set_process_completed_buffers_threshold(process_completed_buffers_threshold); _shared_satb_queue.set_lock(lock); assert(buffer_size() != 0, "buffer size not initialized"); // Minimum threshold of 1 ensures enqueuing of completely full buffers. size_t size = buffer_size(); size_t enqueue_qty = (size * buffer_enqueue_threshold_percentage) / 100;
< prev index next >