Skip to content

Commit 38e0a58

Browse files
committed
8264273: macOS: zero VM is broken due to no member named 'is_cpu_emulated' after JDK-8261966
Reviewed-by: iklam
1 parent c9d2d02 commit 38e0a58

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/hotspot/os/bsd/os_bsd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1404,7 +1404,7 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
14041404
}
14051405

14061406
const char* emulated = "";
1407-
#ifdef __APPLE__
1407+
#if defined(__APPLE__) && !defined(ZERO)
14081408
if (VM_Version::is_cpu_emulated()) {
14091409
emulated = " (EMULATED)";
14101410
}

src/hotspot/share/runtime/os.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1033,7 +1033,7 @@ void os::print_environment_variables(outputStream* st, const char** env_list) {
10331033
void os::print_cpu_info(outputStream* st, char* buf, size_t buflen) {
10341034
// cpu
10351035
st->print("CPU:");
1036-
#ifdef __APPLE__
1036+
#if defined(__APPLE__) && !defined(ZERO)
10371037
if (VM_Version::is_cpu_emulated()) {
10381038
st->print(" (EMULATED)");
10391039
}

0 commit comments

Comments
 (0)