changeset 9657:d806ff9d9804

8140249: JVM Crashing During startUp If Flight Recording is enabled Reviewed-by: dholmes Contributed-by: Shafi Ahmad <shafi.s.ahmad@oracle.com>
author poonam
date Fri, 30 Oct 2015 08:29:19 -0700
parents 145a439b47cd
children 96773453776a
files src/cpu/x86/vm/vm_version_x86.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/vm_version_x86.hpp	Fri Oct 30 06:50:55 2015 +0000
+++ b/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()  {