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

Wrong iteration order of pause array in g1MMUTracker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 21
    • 20, 21
    • hotspot
    • None
    • gc
    • b18

    Description

      G1 pause _array is iterated from oldest pause to newer pause in order to calculate the pause budget, but it should be iterated in the opposite direction (newest to oldest).

      In double G1MMUTracker::when_sec(double current_timestamp, double pause_time) code:

      int index = trim_index(_head_index + i);

      should be replaced with:

      int index = trim_index(_head_index - i);

      Attachments

        Issue Links

          Activity

            People

              avoitylov Aleksei Voitylov
              avoitylov Aleksei Voitylov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: