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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: None
    • Component/s: hotspot
    • gc
    • b03

      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.

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

              Created:
              Updated:
              Resolved: