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

G1: Make loop iteration variable type correspond to limit in G1SurvRateGroup

XMLWordPrintable

    • gc
    • b12

      In the G1SurvRateGroup class there are three loops that use a `size_t` loop iteration variable that is compared to `uint`s in the condition, causing some implicit narrowing.

      Change the loop variables to also use `uints`.

      Pointed out by ~kimbarrett during review of JDK-8349906.

            tschatzl Thomas Schatzl
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: