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

G1: Move heap expansion time tracking of G1CollectedHeap:expand to call site

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • None
    • hotspot
    • gc
    • master

      In `G1CollectedHeap:expand`:

      ```
      bool expand(size_t expand_bytes, WorkerThreads* pretouch_workers, double* expand_time_ms = nullptr);
      ```

      The third arg is for tracking heap expansion time, which is required only in one call site, `expand_heap_after_young_collection`. Move the time-tracking logic to the call-site to simplify the logic in this method implementation.

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

              Created:
              Updated:
              Resolved: