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

G1: update_remset_before_rebuild mixes liveness in words with liveness in bytes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11.0.2, 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b19

      Description

      size_t const live_bytes = _cm->liveness(hr->hrm_index());
      selected_for_rebuild = tracking_policy->update_before_rebuild(hr, live_bytes);

      The code erroneously uses the liveness count (i.e. the amount of live words between bottom and nTAMS) instead of the liveness_in_bytes for the selection of regions for remembered set rebuilding. The effect is that more regions will be selected for rebuild than necessary.

      Fix and add a test for G1MixedGCLiveThresholdPercent

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iwalulya Ivan Walulya
              Reporter:
              iwalulya Ivan Walulya
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: