8149184: os::is_server_class_machine() could return incorrect result if a host's cpu have a few logical cores
authorkzhaldyb
Mon, 08 Feb 2016 18:26:27 +0300
changeset 35949 02676622ca27
parent 35948 df8ecc74bf4a
child 35950 c6142cb6bc4a
child 36081 cac585c76d4c
child 36084 9a3bf78e9a76
8149184: os::is_server_class_machine() could return incorrect result if a host's cpu have a few logical cores Reviewed-by: dsamersoff, dholmes
hotspot/src/share/vm/runtime/os.cpp
--- a/hotspot/src/share/vm/runtime/os.cpp	Thu Dec 17 16:12:58 2015 +0300
+++ b/hotspot/src/share/vm/runtime/os.cpp	Mon Feb 08 18:26:27 2016 +0300
@@ -1490,7 +1490,7 @@
     if (logical_processors > 1) {
       const unsigned int physical_packages =
         os::active_processor_count() / logical_processors;
-      if (physical_packages > server_processors) {
+      if (physical_packages >= server_processors) {
         result = true;
       }
     } else {