RFR: 8365919: Replace currentTimeMillis with nanoTime in Stresser.java [v2]
Albert Mingkun Yang
ayang at openjdk.org
Fri Aug 22 18:37:47 UTC 2025
> Mostly a mechanic change from `currentTimeMillis()` to `nanoTime()/1000000`. It also removes `finishTime` to avoid overflowing.
>
> The change in `iteration()` is to ensure `currentTime` is properly initialized.
>
> (Was investigating a timeout on Windows-x64, which led me to this code. I think this fix is good enough by its own.)
>
> Test: tier1-5
Albert Mingkun Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- review
- Merge branch 'master' into test-nano-time
- test-nano-time
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26879/files
- new: https://git.openjdk.org/jdk/pull/26879/files/7af0923b..cefb9948
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26879&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26879&range=00-01
Stats: 2221 lines in 64 files changed: 1292 ins; 549 del; 380 mod
Patch: https://git.openjdk.org/jdk/pull/26879.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26879/head:pull/26879
PR: https://git.openjdk.org/jdk/pull/26879
More information about the hotspot-gc-dev
mailing list