RFR: JDK-8301661: Enhance os::pd_print_cpu_info on macOS and Windows
David Holmes
dholmes at openjdk.org
Fri Feb 3 08:45:52 UTC 2023
On Fri, 3 Feb 2023 08:25:09 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> Enhance os::pd_print_cpu_info on macOS and Windows by information about CPU frequency and caches.
> On Windows , this info can be obtained by the Processor Power Information API or "powerbase" (CallNtPowerInformation , see https://learn.microsoft.com/en-us/windows/win32/api/powerbase/nf-powerbase-callntpowerinformation ); this is available since Windows Server 2003/XP.
> On macOS, sysctlbyname can be used.
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?
-------------
PR: https://git.openjdk.org/jdk/pull/12403
More information about the hotspot-runtime-dev
mailing list