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.
```
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.
- links to
-
Commit(master) openjdk/jdk/f62f1178
-
Review(master) openjdk/jdk/25835