RFR: 8354811: clock_tics_per_sec code duplication between os_linux and os_posix

Matthias Baesken mbaesken at openjdk.org
Thu Apr 17 11:42:40 UTC 2025


On Thu, 17 Apr 2025 11:23:28 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Seems some of the clock_tics_per_sec code can be unified (e.g. in os_posix) between os_linux and os_posix.

I noticed we have 2 usages here as well
https://github.com/openjdk/jdk/blob/1138a186eb670e2c0662bda69c35680b41f4d66c/src/hotspot/os/aix/os_perf_aix.cpp#L121

Should I call the new method there too ?
On AIX it is clock_t  (an int type, looking at the headers it is a typedef  to 'int') .

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

PR Comment: https://git.openjdk.org/jdk/pull/24720#issuecomment-2812603018


More information about the hotspot-runtime-dev mailing list