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);
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);
- relates to
-
JDK-8290376 G1: Refactor G1MMUTracker::when_sec
-
- Resolved
-