RFR: 8311639: Replace currentTimeMillis() with nanoTime() in jtreg/gc [v3]

Leo Korinth lkorinth at openjdk.org
Fri Aug 18 12:49:27 UTC 2023


On Fri, 18 Aug 2023 11:16:30 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

>> I will try to see if I can do it without using time at all.
>
> Not using time is probably the best. Not obvious if #digits here is critical. Maybe this is useful -- e.g. to generate fixed 6-digit int:
> 
> 
> Random rnd = new Random();
> int n = 100_000 + rnd.nextInt(900_000);

I reverted to the original implementation as I did not understand the idea behind it.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/15331#discussion_r1298412049


More information about the hotspot-gc-dev mailing list