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

G1: add precondition to set_remainder_to_point_to_start

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 18
    • 18
    • hotspot
    • gc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: