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

G1: Call record_root_region_scan_wait_time conditionally

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 20
    • hotspot
    • gc

      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.

            ayang Albert Yang
            ayang Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: