8214202: DirtyCardQueueSet::get_completed_buffer should not clear _process_completed

Remove flag clearing and simplify get_completed-buffer.

Reviewed-by: tschatzl, sjohanss
This commit is contained in:
Kim Barrett 2018-11-26 13:17:39 -05:00
parent 5d725a98c8
commit 5c99d95a63
2 changed files with 11 additions and 12 deletions

View file

@ -327,7 +327,7 @@ void PtrQueueSet::merge_bufferlists(PtrQueueSet *src) {
void PtrQueueSet::notify_if_necessary() {
MutexLockerEx x(_cbl_mon, Mutex::_no_safepoint_check_flag);
assert(_process_completed_threshold >= 0, "_process_completed is negative");
assert(_process_completed_threshold >= 0, "_process_completed_threshold is negative");
if (_n_completed_buffers >= (size_t)_process_completed_threshold || _max_completed_queue == 0) {
_process_completed = true;
if (_notify_when_complete)