G1DirtyCardQueueSet::abandon_completed_buffers starts by calling enqueue_all_paused_buffers() and verify_num_cards(). It then calls take_all_completed_buffers() to get the buffers to abandon.
But take_all_completed_buffers starts by calling enqueue_all_paused_buffers() and verify_num_cards(), making the calls in abandon_completed_buffers redundant and removable.
But take_all_completed_buffers starts by calling enqueue_all_paused_buffers() and verify_num_cards(), making the calls in abandon_completed_buffers redundant and removable.