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

G1: add precondition to set_remainder_to_point_to_start

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • 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.

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

              Created:
              Updated:
              Resolved: