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

G1: add precondition to set_remainder_to_point_to_start

    XMLWordPrintable

    Details

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

      Description

      `set_remainder_to_point_to_start(start, end)` is called in a single place, inside a `if`, which ensures `start < end`. Therefore, the early-return `if (start >= end)` inside the callee is always false.

      Similarly, the early-return inside `set_remainder_to_point_to_start_incl` is unnecessary.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: