Mon, 24 Sep 2012 11:07:03 -0700
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>
src/cpu/sparc/vm/vm_version_sparc.cpp | file | annotate | diff | comparison | revisions | |
src/cpu/sparc/vm/vm_version_sparc.hpp | file | annotate | diff | comparison | revisions |
1.1 --- a/src/cpu/sparc/vm/vm_version_sparc.cpp Thu Sep 20 16:49:17 2012 +0200 1.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.cpp Mon Sep 24 11:07:03 2012 -0700 1.3 @@ -339,7 +339,11 @@ 1.4 1.5 unsigned int VM_Version::calc_parallel_worker_threads() { 1.6 unsigned int result; 1.7 - if (is_niagara_plus()) { 1.8 + if (is_M_series()) { 1.9 + // for now, use same gc thread calculation for M-series as for niagara-plus 1.10 + // in future, we may want to tweak parameters for nof_parallel_worker_thread 1.11 + result = nof_parallel_worker_threads(5, 16, 8); 1.12 + } else if (is_niagara_plus()) { 1.13 result = nof_parallel_worker_threads(5, 16, 8); 1.14 } else { 1.15 result = nof_parallel_worker_threads(5, 8, 8);
2.1 --- a/src/cpu/sparc/vm/vm_version_sparc.hpp Thu Sep 20 16:49:17 2012 +0200 2.2 +++ b/src/cpu/sparc/vm/vm_version_sparc.hpp Mon Sep 24 11:07:03 2012 -0700 2.3 @@ -1,5 +1,5 @@ 2.4 /* 2.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 2.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2.8 * 2.9 * This code is free software; you can redistribute it and/or modify it 2.10 @@ -124,6 +124,8 @@ 2.11 // Returns true if the platform is in the niagara line (T series) 2.12 // and newer than the niagara1. 2.13 static bool is_niagara_plus() { return is_T_family(_features) && !is_T1_model(_features); } 2.14 + 2.15 + static bool is_M_series() { return is_M_family(_features); } 2.16 static bool is_T4() { return is_T_family(_features) && has_cbcond(); } 2.17 2.18 // Fujitsu SPARC64