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

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • 11.0.2, 17
    • hotspot
    • gc
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: