RFR: 8269175: [macosx-aarch64] wrong CPU speed in hs_err file
dholmes at openjdk.java.net
Wed Oct 13 21:24:47 UTC 2021
On Tue, 12 Oct 2021 20:25:55 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
> macOS does not provide CPU speed for M1, but we currently try to report it in hs_err log file:
> ` Host: gerard-mac, "Macmini9,1" arm64 1 MHz, 8 cores, 16G, Darwin 20.5.0, macOS 11.4 (20F71)`
> and end up with a bogus "1MHz" value, so we will simply skip the CPU speed from now on for M1 machines:
> ` Host: gerard-mac, "Macmini9,1" arm64, 8 cores, 16G, Darwin 20.5.0, macOS 11.4 (20F71)`
It is a shame to see the same line (almost) copied three times but the conditional logic here is complicated enough that I think this explicit version is more readable than one that would try to share that line.
Marked as reviewed by dholmes (Reviewer).
More information about the hotspot-runtime-dev