diff src/cpu/sparc/vm/vm_version_sparc.cpp @ 6797:3a327d0b8586

7188176: The JVM should differentiate between T and M series and adjust GC ergonomics Reviewed-by: kvn Contributed-by: Tao Mao <tao.mao@oracle.com>
author twisti
date Mon, 24 Sep 2012 11:07:03 -0700
parents 7eca5de9e0b6
children 8e47bac5643a
line wrap: on
line diff
--- a/src/cpu/sparc/vm/vm_version_sparc.cpp	Thu Sep 20 16:49:17 2012 +0200
+++ b/src/cpu/sparc/vm/vm_version_sparc.cpp	Mon Sep 24 11:07:03 2012 -0700
@@ -339,7 +339,11 @@
 
 unsigned int VM_Version::calc_parallel_worker_threads() {
   unsigned int result;
-  if (is_niagara_plus()) {
+  if (is_M_series()) {
+    // for now, use same gc thread calculation for M-series as for niagara-plus
+    // in future, we may want to tweak parameters for nof_parallel_worker_thread
+    result = nof_parallel_worker_threads(5, 16, 8);
+  } else if (is_niagara_plus()) {
     result = nof_parallel_worker_threads(5, 16, 8);
   } else {
     result = nof_parallel_worker_threads(5, 8, 8);