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

David Holmes dholmes at openjdk.org
Tue Feb 21 00:45:29 UTC 2023


On Fri, 17 Feb 2023 08:17:52 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.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Rename variables, adjust output, add a break

I'm still a little dubious about the buffer size check but lets see how this goes.

Thanks.

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

Marked as reviewed by dholmes (Reviewer).

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



More information about the build-dev mailing list