G1CollectedHeap::recalculate_used() always sets the time taken to do this operation in G1GCPhaseTimes.
However this method is used in more places than during evacuation failure. The time taking should be moved out of the method.
Since this value is only shown in the log during evacuation failure where it has just been written, there should not be any visible issue.
However this method is used in more places than during evacuation failure. The time taking should be moved out of the method.
Since this value is only shown in the log during evacuation failure where it has just been written, there should not be any visible issue.