RFR: 8261966: macOS M1: report in hs_err log if we are running x86 code in emulation mode (Rosetta) [v3]
Gerard Ziemski
gziemski at openjdk.java.net
Mon Mar 22 17:19:04 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)`
>
> and
>
> `CPU: (EMULATED) total 8 (initial active 8) (1 cores per cpu, 1 threads per core) family 6 model 44 stepping 0 microcode 0x0, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, aes, clmul, tsc, tscinvbit, tscinv, clflush`
Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:
move the (EMULATED) label right next to the architecture name in the HOST section
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3077/files
- new: https://git.openjdk.java.net/jdk/pull/3077/files/870fb0a6..ba76a81f
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3077&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3077&range=01-02
Stats: 15 lines in 2 files changed: 6 ins; 6 del; 3 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