23 Star 19 Fork 75

src-openEuler / openjdk-1.8.0

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
0049-Modify-G1GC-log-information.patch 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
Date: Fri, 9 Jun 2023 14:18:54 +0800
Subject: Modify G1GC log information
---
hotspot/src/share/vm/gc_implementation/g1/g1NUMA.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/hotspot/src/share/vm/gc_implementation/g1/g1NUMA.cpp b/hotspot/src/share/vm/gc_implementation/g1/g1NUMA.cpp
index 05b4d8989..c937ebc54 100644
--- a/hotspot/src/share/vm/gc_implementation/g1/g1NUMA.cpp
+++ b/hotspot/src/share/vm/gc_implementation/g1/g1NUMA.cpp
@@ -281,13 +281,13 @@ G1NodeIndexCheckClosure::G1NodeIndexCheckClosure(const char* desc, G1NUMA* numa)
}
G1NodeIndexCheckClosure::~G1NodeIndexCheckClosure() {
- if (G1Log::finer()) {
- gclog_or_tty->print("%s: NUMA region verification (id: matched/mismatched/total): ", _desc);
+ if (UseNUMA && G1Log::finer()) {
+ gclog_or_tty->print(" [%s: NUMA region verification (id: matched/mismatched/total): ", _desc);
const int* numa_ids = _numa->node_ids();
for (uint i = 0; i < _numa->num_active_nodes(); i++) {
- gclog_or_tty->print("%d: %u/%u/%u ", numa_ids[i], _matched[i], _mismatched[i], _total[i]);
+ gclog_or_tty->print("%d: %u/%u/%u", numa_ids[i], _matched[i], _mismatched[i], _total[i]);
}
- gclog_or_tty->print_cr(" ");
+ gclog_or_tty->print("]");
}
FREE_C_HEAP_ARRAY(uint, _matched, mtGC);
FREE_C_HEAP_ARRAY(uint, _mismatched, mtGC);
--
2.22.0
1
https://gitee.com/src-openeuler/openjdk-1.8.0.git
git@gitee.com:src-openeuler/openjdk-1.8.0.git
src-openeuler
openjdk-1.8.0
openjdk-1.8.0
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891