RFR: JDK-8293997: Unify os::current_thread_cpu_time_info and os::thread_cpu_time_info

David Holmes dholmes at openjdk.org
Mon Sep 19 12:13:44 UTC 2022


On Mon, 19 Sep 2022 11:10:54 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> The 2 methods os::current_thread_cpu_time_info and os::thread_cpu_time_info could be unified across the posix platforms.

@MBaesken this has been proposed before but I objected on the basis that the "info" function should be co-located with the actual "time" function, as the former describes the properties of the latter. As long as the time function is in OS specific code then the info function should be too IMO.

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

PR: https://git.openjdk.org/jdk/pull/10335


More information about the hotspot-runtime-dev mailing list