34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
|
|
From 49a2e9b6736355ccf7a836784f8fc214458c16bc Mon Sep 17 00:00:00 2001
|
||
|
|
Date: Wed, 22 Apr 2020 17:51:21 +0000
|
||
|
|
Subject: [PATCH] 6858051: Add a switch for the dynamic thread related log
|
||
|
|
|
||
|
|
Summary: <gc>: Add a switch for the dynamic thread related log
|
||
|
|
LLT: hotspot/test/gc/ergonomics/TestDynamicNumberOfGCThreads.java
|
||
|
|
Bug url: https://bugs.openjdk.java.net/browse/JDK-6858051
|
||
|
|
---
|
||
|
|
hotspot/src/share/vm/gc_implementation/shared/workerManager.hpp | 8 +++++---
|
||
|
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/hotspot/src/share/vm/gc_implementation/shared/workerManager.hpp b/hotspot/src/share/vm/gc_implementation/shared/workerManager.hpp
|
||
|
|
index 1a840cf2b..d48d60f3e 100644
|
||
|
|
--- a/hotspot/src/share/vm/gc_implementation/shared/workerManager.hpp
|
||
|
|
+++ b/hotspot/src/share/vm/gc_implementation/shared/workerManager.hpp
|
||
|
|
@@ -67,9 +67,11 @@ class WorkerManager : public AllStatic {
|
||
|
|
os::start_thread(new_worker);
|
||
|
|
}
|
||
|
|
|
||
|
|
- gclog_or_tty->print_cr("AdaptiveSizePolicy::add_workers() : "
|
||
|
|
- "active_workers: %u created_workers: %u",
|
||
|
|
- active_workers, created_workers);
|
||
|
|
+ if (TraceDynamicGCThreads) {
|
||
|
|
+ gclog_or_tty->print_cr("AdaptiveSizePolicy::add_workers() : "
|
||
|
|
+ "active_workers: %u created_workers: %u",
|
||
|
|
+ active_workers, created_workers);
|
||
|
|
+ }
|
||
|
|
|
||
|
|
return created_workers;
|
||
|
|
}
|
||
|
|
--
|
||
|
|
2.12.3
|
||
|
|
|