src/share/vm/gc/g1/ptrQueue.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/gc/g1/ptrQueue.cpp

src/share/vm/gc/g1/ptrQueue.cpp

Print this page

        

*** 107,118 **** // doing nothing here. } void PtrQueueSet::initialize(Monitor* cbl_mon, Mutex* fl_lock, ! int process_completed_threshold, ! int max_completed_queue, PtrQueueSet *fl_owner) { _max_completed_queue = max_completed_queue; _process_completed_threshold = process_completed_threshold; _completed_queue_padding = 0; assert(cbl_mon != NULL && fl_lock != NULL, "Init order issue?"); --- 107,118 ---- // doing nothing here. } void PtrQueueSet::initialize(Monitor* cbl_mon, Mutex* fl_lock, ! size_t process_completed_threshold, ! size_t max_completed_queue, PtrQueueSet *fl_owner) { _max_completed_queue = max_completed_queue; _process_completed_threshold = process_completed_threshold; _completed_queue_padding = 0; assert(cbl_mon != NULL && fl_lock != NULL, "Init order issue?");
*** 246,265 **** _completed_buffers_tail->set_next(cbn); _completed_buffers_tail = cbn; } _n_completed_buffers++; ! if (!_process_completed && _process_completed_threshold >= 0 && _n_completed_buffers >= _process_completed_threshold) { _process_completed = true; ! if (_notify_when_complete) _cbl_mon->notify(); } DEBUG_ONLY(assert_completed_buffer_list_len_correct_locked()); } ! int PtrQueueSet::completed_buffers_list_length() { int n = 0; BufferNode* cbn = _completed_buffers_head; while (cbn != NULL) { n++; cbn = cbn->next(); --- 246,266 ---- _completed_buffers_tail->set_next(cbn); _completed_buffers_tail = cbn; } _n_completed_buffers++; ! if (!_process_completed && _n_completed_buffers >= _process_completed_threshold) { _process_completed = true; ! if (_notify_when_complete) { _cbl_mon->notify(); } + } DEBUG_ONLY(assert_completed_buffer_list_len_correct_locked()); } ! size_t PtrQueueSet::completed_buffers_list_length() { int n = 0; BufferNode* cbn = _completed_buffers_head; while (cbn != NULL) { n++; cbn = cbn->next();
src/share/vm/gc/g1/ptrQueue.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File