Skip to content

Commit 36998b0

Browse files
committed
8255716: AArch64: Regression: JVM crashes if manually offline a core
Reviewed-by: aph, adinn, akozlov
1 parent 4107670 commit 36998b0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/hotspot/os_cpu/linux_aarch64/vm_version_linux_aarch64.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ void VM_Version::get_os_cpu_info() {
142142
_zva_length = 4 << (dczid_el0 & 0xf);
143143
}
144144

145-
int cpu_lines = 0;
146145
if (FILE *f = fopen("/proc/cpuinfo", "r")) {
147146
// need a large buffer as the flags line may include lots of text
148147
char buf[1024], *p;
@@ -151,7 +150,6 @@ void VM_Version::get_os_cpu_info() {
151150
long v = strtol(p+1, NULL, 0);
152151
if (strncmp(buf, "CPU implementer", sizeof "CPU implementer" - 1) == 0) {
153152
_cpu = v;
154-
cpu_lines++;
155153
} else if (strncmp(buf, "CPU variant", sizeof "CPU variant" - 1) == 0) {
156154
_variant = v;
157155
} else if (strncmp(buf, "CPU part", sizeof "CPU part" - 1) == 0) {
@@ -168,5 +166,4 @@ void VM_Version::get_os_cpu_info() {
168166
}
169167
fclose(f);
170168
}
171-
guarantee(cpu_lines == os::processor_count(), "core count should be consistent");
172169
}

0 commit comments

Comments
 (0)