Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273386

Remove duplicated code in G1DCQS::abandon_completed_buffers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • hotspot
    • gc
    • b14

      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.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: