G1: add precondition to set_remainder_to_point_to_start

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 18
    • Affects Version/s: 18
    • Component/s: hotspot
    • gc
    • b27

      `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.

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

              Created:
              Updated:
              Resolved: