comparison src/cpu/sparc/vm/vm_version_sparc.cpp @ 10:28372612af5e

6362677: Change parallel GC collector default number of parallel GC threads. Summary: Use the same default number of GC threads as used by ParNewGC and ConcMarkSweepGC (i.e., the 5/8th rule). Reviewed-by: ysr, tonyp
author jmasa
date Fri, 22 Feb 2008 17:17:14 -0800
parents a61af66fc99e
children ba764ed4b6f2
comparison
equal deleted inserted replaced
9:173195ff483a 10:28372612af5e
25 # include "incls/_precompiled.incl" 25 # include "incls/_precompiled.incl"
26 # include "incls/_vm_version_sparc.cpp.incl" 26 # include "incls/_vm_version_sparc.cpp.incl"
27 27
28 int VM_Version::_features = VM_Version::unknown_m; 28 int VM_Version::_features = VM_Version::unknown_m;
29 const char* VM_Version::_features_str = ""; 29 const char* VM_Version::_features_str = "";
30
31 bool VM_Version::is_niagara1_plus() {
32 // This is a placeholder until the real test is determined.
33 return is_niagara1() &&
34 (os::processor_count() > maximum_niagara1_processor_count());
35 }
30 36
31 void VM_Version::initialize() { 37 void VM_Version::initialize() {
32 _features = determine_features(); 38 _features = determine_features();
33 PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes(); 39 PrefetchCopyIntervalInBytes = prefetch_copy_interval_in_bytes();
34 PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes(); 40 PrefetchScanIntervalInBytes = prefetch_scan_interval_in_bytes();
158 } 164 }
159 165
160 void VM_Version::revert() { 166 void VM_Version::revert() {
161 _features = saved_features; 167 _features = saved_features;
162 } 168 }
169
170 unsigned int VM_Version::calc_parallel_worker_threads() {
171 unsigned int result;
172 if (is_niagara1_plus()) {
173 result = nof_parallel_worker_threads(5, 16, 8);
174 } else {
175 result = nof_parallel_worker_threads(5, 8, 8);
176 }
177 return result;
178 }