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

G1: G1CollectionSet::finalize_young_part clears survivor list too early

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 20
    • 20
    • hotspot
    • gc
    • b06

    Description

      In G1CollectionSet::finalize_young_part

      ```
      // Clear the fields that point to the survivor list - they are all young now.
        survivors->convert_to_eden();
        .
        .
         double predicted_base_time_ms = _policy->predict_base_elapsed_time_ms(pending_cards);
      ```
      clears the list of survivor regions before we predict the evacuation costs of these regions.

      The predict_survivor_regions_evac_time(); called by predict_base_elapsed_time_ms attempts to iterate the survivor regions list after it has been cleared, thus it returns 0 survivor_regions_evac_time.

      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: