src/share/vm/gc/g1/ptrQueue.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/gc/g1/ptrQueue.cpp	Fri Feb 19 12:02:09 2016
--- new/src/share/vm/gc/g1/ptrQueue.cpp	Fri Feb 19 12:02:08 2016

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 107,118 **** --- 107,118 ---- // doing nothing here. } void PtrQueueSet::initialize(Monitor* cbl_mon, Mutex* fl_lock, ! int process_completed_threshold, ! int max_completed_queue, ! 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,266 **** --- 246,267 ---- _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; ! size_t PtrQueueSet::completed_buffers_list_length() { ! size_t 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