33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
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
|
|
|