RFR: 8273239: Standardize Ticks APIs return type
Albert Mingkun Yang
ayang at openjdk.java.net
Tue Sep 7 17:27:00 UTC 2021
On Wed, 1 Sep 2021 14:38:52 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
> Simple change on return types of Ticks API.
>
> The call of `milliseconds()` in `spinYield.cpp` seems a bug to me, because the unit in the message is `usecs`. Therefore, I changed it to `microseconds()`.
>
> Test: tier1
Small variant of option 2: template methods of return-type overloading. The default return-type is the same as before, but callers expecting real number can do sth like `milliseconds<double>()`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5332
More information about the hotspot-dev
mailing list