RFR: 8365919: Replace currentTimeMillis with nanoTime in Stresser.java [v2]
Albert Mingkun Yang
ayang at openjdk.org
Fri Aug 22 18:40:52 UTC 2025
On Fri, 22 Aug 2025 17:20:21 GMT, Paul Hohensee <phh at openjdk.org> wrote:
> You might want to load (options.getTime() * 1000) into a local rather than compute it multiple times.
Extracted that to a local var for `getTimeLeft`. I skipped `printExecutionInfo`, as I feel introducing a local var there actually makes it a bit harder to read.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26879#issuecomment-3215273166
More information about the hotspot-gc-dev
mailing list