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 @@ -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}
You can’t perform that action at this time.
0 commit comments