RFR: JDK-8301661: Enhance os::pd_print_cpu_info on macOS and Windows

Matthias Baesken mbaesken at openjdk.org
Fri Feb 3 11:52:50 UTC 2023


On Fri, 3 Feb 2023 08:42:47 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Okay the usual question when we augment the information that will appear in hs_err file: how safe is this going to be to call from a signal handler?

Hi David , I think the sysctl / sysctlbyname calls on macOS are rather safe (and we use this already for some time for other entries e.g. in os::print_summary_info  in vm error reporting, so nothing really new. Not so sure about the Windows powerprof / powerbase API, this was not used before to my knowledge in OpenJDK. However we use both macOS and Windows APIs for some time in our internal JVM, no issues seen so far.

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

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


More information about the hotspot-runtime-dev mailing list