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

G1CollectedHeap::expand() returns the wrong value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b22

      Description

      G1CollectedHeap::expand() returns

        regions_to_expand > 0

      which is true if we wanted to expand; the correct value would be

        expanded_by > 0;

      to return if the heap has actually been expanded.

      There is no particular impact on this except for some (minimal) extra work done.

      Found by Jonathan Joo (http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2021-October/037149.html)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              manc Man Cao
              Reporter:
              tschatzl Thomas Schatzl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: