File tree Expand file tree Collapse file tree 1 file changed +0
-3
lines changed
src/hotspot/os_cpu/linux_aarch64 Expand file tree Collapse file tree 1 file changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,6 @@ void VM_Version::get_os_cpu_info() {
142
142
_zva_length = 4 << (dczid_el0 & 0xf );
143
143
}
144
144
145
- int cpu_lines = 0 ;
146
145
if (FILE *f = fopen (" /proc/cpuinfo" , " r" )) {
147
146
// need a large buffer as the flags line may include lots of text
148
147
char buf[1024 ], *p;
@@ -151,7 +150,6 @@ void VM_Version::get_os_cpu_info() {
151
150
long v = strtol (p+1 , NULL , 0 );
152
151
if (strncmp (buf, " CPU implementer" , sizeof " CPU implementer" - 1 ) == 0 ) {
153
152
_cpu = v;
154
- cpu_lines++;
155
153
} else if (strncmp (buf, " CPU variant" , sizeof " CPU variant" - 1 ) == 0 ) {
156
154
_variant = v;
157
155
} else if (strncmp (buf, " CPU part" , sizeof " CPU part" - 1 ) == 0 ) {
@@ -168,5 +166,4 @@ void VM_Version::get_os_cpu_info() {
168
166
}
169
167
fclose (f);
170
168
}
171
- guarantee (cpu_lines == os::processor_count (), " core count should be consistent" );
172
169
}
You can’t perform that action at this time.
0 commit comments