In `G1YoungCollector::wait_for_root_region_scanning`:
```
Tickspan wait_time;
if (waited) {
wait_time = ...
}
record_root_region_scan_wait_time(...);
```
`wait_time` is updated to non-zero only if `waited == true`. The record-call can be made conditional because the underlying counter is reset to zero at pause-start.
```
Tickspan wait_time;
if (waited) {
wait_time = ...
}
record_root_region_scan_wait_time(...);
```
`wait_time` is updated to non-zero only if `waited == true`. The record-call can be made conditional because the underlying counter is reset to zero at pause-start.
- links to
-
Review openjdk/jdk/10915