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

Matthias Baesken mbaesken at openjdk.org
Fri Feb 3 08:32:39 UTC 2023


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.

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

Commit messages:
 - JDK-8301661

Changes: https://git.openjdk.org/jdk/pull/12403/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12403&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8301661
  Stats: 61 lines in 2 files changed: 59 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/12403.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12403/head:pull/12403

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


More information about the hotspot-runtime-dev mailing list