Skip to content

Commit f4b7e65

Browse files
committed
Backport 36998b0
1 parent aced46b commit f4b7e65

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
@@ -94,7 +94,6 @@ void VM_Version::get_os_cpu_info() {
9494
_zva_length = 4 << (dczid_el0 & 0xf);
9595
}
9696

97-
int cpu_lines = 0;
9897
if (FILE *f = fopen("/proc/cpuinfo", "r")) {
9998
// need a large buffer as the flags line may include lots of text
10099
char buf[1024], *p;
@@ -103,7 +102,6 @@ void VM_Version::get_os_cpu_info() {
103102
long v = strtol(p+1, NULL, 0);
104103
if (strncmp(buf, "CPU implementer", sizeof "CPU implementer" - 1) == 0) {
105104
_cpu = v;
106-
cpu_lines++;
107105
} else if (strncmp(buf, "CPU variant", sizeof "CPU variant" - 1) == 0) {
108106
_variant = v;
109107
} else if (strncmp(buf, "CPU part", sizeof "CPU part" - 1) == 0) {
@@ -116,5 +114,4 @@ void VM_Version::get_os_cpu_info() {
116114
}
117115
fclose(f);
118116
}
119-
guarantee(cpu_lines == os::processor_count(), "core count should be consistent");
120117
}

0 commit comments

Comments
 (0)