RFR: 8269175: [macosx-aarch64] wrong CPU speed in hs_err file

Gerard Ziemski gziemski at openjdk.java.net
Wed Oct 13 17:51:05 UTC 2021

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)`


Commit messages:
 - forgot to handle non aarch64 architecture
 - do not report CPU speed on M1, because macOS does not provide it

Changes: https://git.openjdk.java.net/jdk/pull/5916/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5916&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8269175
  Stats: 9 lines in 1 file changed: 6 ins; 2 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5916.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5916/head:pull/5916

PR: https://git.openjdk.java.net/jdk/pull/5916

More information about the hotspot-runtime-dev mailing list