8140249: JVM Crashing During startUp If Flight Recording is enabled
authorpoonam
Fri, 30 Oct 2015 08:29:19 -0700
changeset 33735 b6b92fae32c0
parent 33734 c02ce674286e
child 33736 1b3950243443
8140249: JVM Crashing During startUp If Flight Recording is enabled Reviewed-by: dholmes Contributed-by: Shafi Ahmad <shafi.s.ahmad@oracle.com>
hotspot/src/cpu/x86/vm/vm_version_x86.hpp
--- a/hotspot/src/cpu/x86/vm/vm_version_x86.hpp	Fri Oct 30 06:50:55 2015 +0000
+++ b/hotspot/src/cpu/x86/vm/vm_version_x86.hpp	Fri Oct 30 08:29:19 2015 -0700
@@ -652,7 +652,7 @@
       result = _cpuid_info.std_cpuid1_ebx.bits.threads_per_cpu /
                cores_per_cpu();
     }
-    return result;
+    return (result == 0 ? 1 : result);
   }
 
   static intx L1_line_size()  {