comparison src/cpu/sparc/vm/vm_version_sparc.hpp @ 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 d1605aabd0a1
comparison
equal deleted inserted replaced
9:173195ff483a 10:28372612af5e
62 static int determine_features(); 62 static int determine_features();
63 static int platform_features(int features); 63 static int platform_features(int features);
64 64
65 static bool is_niagara1(int features) { return (features & niagara1_m) == niagara1_m; } 65 static bool is_niagara1(int features) { return (features & niagara1_m) == niagara1_m; }
66 66
67 static int maximum_niagara1_processor_count() { return 32; }
68 // Returns true if the platform is in the niagara line and
69 // newer than the niagara1.
70 static bool is_niagara1_plus();
71
67 public: 72 public:
68 // Initialization 73 // Initialization
69 static void initialize(); 74 static void initialize();
70 75
71 // Instruction support 76 // Instruction support
127 static void allow_all(); 132 static void allow_all();
128 static void revert(); 133 static void revert();
129 134
130 // Override the Abstract_VM_Version implementation. 135 // Override the Abstract_VM_Version implementation.
131 static uint page_size_count() { return is_sun4v() ? 4 : 2; } 136 static uint page_size_count() { return is_sun4v() ? 4 : 2; }
137
138 // Calculates the number of parallel threads
139 static unsigned int calc_parallel_worker_threads();
132 }; 140 };