src/share/vm/gc_implementation/g1/ptrQueue.cpp
Print this page
rev 4973 : imported patch checkpointing.diff
*** 43,52 ****
--- 43,53 ----
} else {
// We must NULL out the unused entries, then enqueue.
for (size_t i = 0; i < _index; i += oopSize) {
_buf[byte_index_to_index((int)i)] = NULL;
}
+ assert(_buf != NULL, "must be non-null");
qset()->enqueue_complete_buffer(_buf);
}
_buf = NULL;
_index = 0;
}
*** 209,218 ****
--- 210,220 ----
enqueue_complete_buffer(buf);
return false;
}
void PtrQueueSet::enqueue_complete_buffer(void** buf, size_t index) {
+ assert(buf != NULL, "must be non-null");
MutexLockerEx x(_cbl_mon, Mutex::_no_safepoint_check_flag);
BufferNode* cbn = BufferNode::new_from_buffer(buf);
cbn->set_index(index);
if (_completed_buffers_tail == NULL) {
assert(_completed_buffers_head == NULL, "Well-formedness");