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

G1: remove unused variable in G1Policy::transfer_survivors_to_cset

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b21

      Description

      In `G1Policy::transfer_survivors_to_cset`:


      ```
        HeapRegion* last = NULL;
        for (...) {
          ...
          last = cur;
        }
      ```

      `last` is effectively unused.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ayang Albert Yang
              Reporter:
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: