Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
6795:7eca5de9e0b6 | 6797:3a327d0b8586 |
---|---|
337 _features = saved_features; | 337 _features = saved_features; |
338 } | 338 } |
339 | 339 |
340 unsigned int VM_Version::calc_parallel_worker_threads() { | 340 unsigned int VM_Version::calc_parallel_worker_threads() { |
341 unsigned int result; | 341 unsigned int result; |
342 if (is_niagara_plus()) { | 342 if (is_M_series()) { |
343 // for now, use same gc thread calculation for M-series as for niagara-plus | |
344 // in future, we may want to tweak parameters for nof_parallel_worker_thread | |
345 result = nof_parallel_worker_threads(5, 16, 8); | |
346 } else if (is_niagara_plus()) { | |
343 result = nof_parallel_worker_threads(5, 16, 8); | 347 result = nof_parallel_worker_threads(5, 16, 8); |
344 } else { | 348 } else { |
345 result = nof_parallel_worker_threads(5, 8, 8); | 349 result = nof_parallel_worker_threads(5, 8, 8); |
346 } | 350 } |
347 return result; | 351 return result; |