changeset 23542:522ea1472a62

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 29d7e9b9878b
children defd2b9a9458
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	Mon Nov 09 13:51:13 2015 -0800
+++ b/src/cpu/x86/vm/vm_version_x86.hpp	Fri Oct 30 08:29:19 2015 -0700
@@ -592,7 +592,7 @@
       result = _cpuid_info.std_cpuid1_ebx.bits.threads_per_cpu /
                cores_per_cpu();
     }
-    return result;
+    return (result == 0 ? 1 : result);
   }
 
   static intx prefetch_data_size()  {