提交 08ef90d2 编写于 作者: T twisti

7188176: The JVM should differentiate between T and M series and adjust GC ergonomics

Reviewed-by: kvn
Contributed-by: NTao Mao <tao.mao@oracle.com>
上级 e7f0e6f3
...@@ -339,7 +339,11 @@ void VM_Version::revert() { ...@@ -339,7 +339,11 @@ void VM_Version::revert() {
unsigned int VM_Version::calc_parallel_worker_threads() { unsigned int VM_Version::calc_parallel_worker_threads() {
unsigned int result; unsigned int result;
if (is_niagara_plus()) { if (is_M_series()) {
// for now, use same gc thread calculation for M-series as for niagara-plus
// in future, we may want to tweak parameters for nof_parallel_worker_thread
result = nof_parallel_worker_threads(5, 16, 8);
} else if (is_niagara_plus()) {
result = nof_parallel_worker_threads(5, 16, 8); result = nof_parallel_worker_threads(5, 16, 8);
} else { } else {
result = nof_parallel_worker_threads(5, 8, 8); result = nof_parallel_worker_threads(5, 8, 8);
......
/* /*
* Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -124,6 +124,8 @@ public: ...@@ -124,6 +124,8 @@ public:
// Returns true if the platform is in the niagara line (T series) // Returns true if the platform is in the niagara line (T series)
// and newer than the niagara1. // and newer than the niagara1.
static bool is_niagara_plus() { return is_T_family(_features) && !is_T1_model(_features); } static bool is_niagara_plus() { return is_T_family(_features) && !is_T1_model(_features); }
static bool is_M_series() { return is_M_family(_features); }
static bool is_T4() { return is_T_family(_features) && has_cbcond(); } static bool is_T4() { return is_T_family(_features) && has_cbcond(); }
// Fujitsu SPARC64 // Fujitsu SPARC64
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册