8273386: Remove duplicated code in G1DCQS::abandon_completed_buffers

Reviewed-by: tschatzl
This commit is contained in:
Kim Barrett 2021-09-06 18:19:58 +00:00
parent fc546d6de9
commit eb221812b2

View File

@ -307,8 +307,6 @@ void G1DirtyCardQueueSet::enqueue_all_paused_buffers() {
} }
void G1DirtyCardQueueSet::abandon_completed_buffers() { void G1DirtyCardQueueSet::abandon_completed_buffers() {
enqueue_all_paused_buffers();
verify_num_cards();
G1BufferNodeList list = take_all_completed_buffers(); G1BufferNodeList list = take_all_completed_buffers();
BufferNode* buffers_to_delete = list._head; BufferNode* buffers_to_delete = list._head;
while (buffers_to_delete != NULL) { while (buffers_to_delete != NULL) {