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

G1: remove unused variable in G1Policy::transfer_survivors_to_cset

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • None
    • hotspot
    • gc
    • b21

      In `G1Policy::transfer_survivors_to_cset`:


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

      `last` is effectively unused.

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

              Created:
              Updated:
              Resolved: