RFR: 8261966: macOS M1: report in hs_err log if we are running x86 code in emulation mode (Rosetta)
Gerard Ziemski
gziemski at openjdk.java.net
Thu Mar 18 18:36:51 UTC 2021
Please review this simple enhancement where we indicate in hs_err log file whether the CPU is being emulated. Right now the only use case is for Apple's M1 aarch64 running x64 code, i.e. "Rosetta" emulation.
This enhancement will insert `(EMULATED)` label after we print host CPU type, ex:
`Host: Oracles-MacBook-Pro-16.local, MacBookPro16,1 x86_64 2600 MHz (EMULATED), 12 cores, 32G, Darwin 19.6.0, macOS 10.15.7 (19H114)`
-------------
Commit messages:
- indicate whether the CPU is being emulated in hs_err log
Changes: https://git.openjdk.java.net/jdk/pull/3077/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3077&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8261966
Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/3077.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3077/head:pull/3077
PR: https://git.openjdk.java.net/jdk/pull/3077
More information about the hotspot-runtime-dev
mailing list