src/cpu/sparc/vm/vm_version_sparc.cpp

changeset 8971
e318654a4fa3
parent 8969
41e0713bcca2
child 8984
7c2285d86b8d
child 9007
91894ffc746c
equal deleted inserted replaced
8970:47ea82f54bdd 8971:e318654a4fa3
447 _features = saved_features; 447 _features = saved_features;
448 } 448 }
449 449
450 unsigned int VM_Version::calc_parallel_worker_threads() { 450 unsigned int VM_Version::calc_parallel_worker_threads() {
451 unsigned int result; 451 unsigned int result;
452 if (is_M_series()) { 452 if (is_M_series() || is_S_series()) {
453 // for now, use same gc thread calculation for M-series as for niagara-plus 453 // for now, use same gc thread calculation for M-series and S-series as for
454 // in future, we may want to tweak parameters for nof_parallel_worker_thread 454 // niagara-plus. In future, we may want to tweak parameters for
455 // nof_parallel_worker_thread
455 result = nof_parallel_worker_threads(5, 16, 8); 456 result = nof_parallel_worker_threads(5, 16, 8);
456 } else if (is_niagara_plus()) { 457 } else if (is_niagara_plus()) {
457 result = nof_parallel_worker_threads(5, 16, 8); 458 result = nof_parallel_worker_threads(5, 16, 8);
458 } else { 459 } else {
459 result = nof_parallel_worker_threads(5, 8, 8); 460 result = nof_parallel_worker_threads(5, 8, 8);
473 if (strstr(impl, "SPARC64") != NULL) { 474 if (strstr(impl, "SPARC64") != NULL) {
474 features |= sparc64_family_m; 475 features |= sparc64_family_m;
475 } else if (strstr(impl, "SPARC-M") != NULL) { 476 } else if (strstr(impl, "SPARC-M") != NULL) {
476 // M-series SPARC is based on T-series. 477 // M-series SPARC is based on T-series.
477 features |= (M_family_m | T_family_m); 478 features |= (M_family_m | T_family_m);
479 } else if (strstr(impl, "SPARC-S") != NULL) {
480 // S-series SPARC is based on T-series.
481 features |= (S_family_m | T_family_m);
478 } else if (strstr(impl, "SPARC-T") != NULL) { 482 } else if (strstr(impl, "SPARC-T") != NULL) {
479 features |= T_family_m; 483 features |= T_family_m;
480 if (strstr(impl, "SPARC-T1") != NULL) { 484 if (strstr(impl, "SPARC-T1") != NULL) {
481 features |= T1_model_m; 485 features |= T1_model_m;
482 } 486 }

mercurial