mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-21 21:33:07 +00:00
8269175: [macosx-aarch64] wrong CPU speed in hs_err file
Reviewed-by: dholmes, dcubed, stuefe
This commit is contained in:
parent
426bcee927
commit
bcbe3845d9
@ -1311,13 +1311,17 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
|
||||
strncpy(machine, "", sizeof(machine));
|
||||
}
|
||||
|
||||
const char* emulated = "";
|
||||
#if defined(__APPLE__) && !defined(ZERO)
|
||||
if (VM_Version::is_cpu_emulated()) {
|
||||
emulated = " (EMULATED)";
|
||||
snprintf(buf, buflen, "\"%s\" %s (EMULATED) %d MHz", model, machine, mhz);
|
||||
} else {
|
||||
NOT_AARCH64(snprintf(buf, buflen, "\"%s\" %s %d MHz", model, machine, mhz));
|
||||
// aarch64 CPU doesn't report its speed
|
||||
AARCH64_ONLY(snprintf(buf, buflen, "\"%s\" %s", model, machine));
|
||||
}
|
||||
#else
|
||||
snprintf(buf, buflen, "\"%s\" %s %d MHz", model, machine, mhz);
|
||||
#endif
|
||||
snprintf(buf, buflen, "\"%s\" %s%s %d MHz", model, machine, emulated, mhz);
|
||||
}
|
||||
|
||||
void os::print_memory_info(outputStream* st) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user