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

G1RegionsSmallerThanCommitSizeMapper::commit_regions() calculate all_zero_filled wrong for callback

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 15
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      In G1RegionsSmallerThanCommitSizeMapper::commit_regions() there is a callback used to notify the owner when memory is commited. This callback includes a boolean telling if the committed memory was zero or not, but in the current implementation this value is not always correct.

      The value is set to false if any region committed belongs to an already committed page, this becomes a problem when we commit multiple regions belonging to the same page. Even if the page was just committed (and therefore zero) we will update the value to false when committing the second region belonging to the same.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sjohanss Stefan Johansson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: