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

Wrong iteration order of pause array in g1MMUTracker

XMLWordPrintable

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

      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);

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

              Created:
              Updated:
              Resolved: