changeset 10209:2a8e87190908

8149184: os::is_server_class_machine() could return incorrect result if a host's cpu have a few logical cores Reviewed-by: dsamersoff, dholmes
author kzhaldyb
date Mon, 08 Feb 2016 18:26:27 +0300
parents 3d001eab27e3
children 535178906f68 3b58a1c9a466 71a634eeec42
files src/share/vm/runtime/os.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/os.cpp	Thu Dec 17 16:12:58 2015 +0300
+++ b/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 {