Skip to content

Commit 2e75c0c

Browse files
committed
disable LogManager shutdown hook
1 parent 8f402aa commit 2e75c0c

File tree

1 file changed

+3
-1
lines changed
  • visualvm/libs.profiler/lib.profiler/test/qa-functional/src/org/graalvm/visualvm/lib/jfluid/tests/jfluid/monitor

1 file changed

+3
-1
lines changed

visualvm/libs.profiler/lib.profiler/test/qa-functional/src/org/graalvm/visualvm/lib/jfluid/tests/jfluid/monitor/MonitorTestCase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,13 @@ protected void startMonitorTest(ProfilerEngineSettings settings, int times, long
220220
for (int i = 0; i < threadsManager.getThreadsCount(); i++) {
221221
ThreadData td = threadsManager.getThreadData(i);
222222
String tname = td.getName();
223+
String className = td.getClassName();
223224

224225
if (!tname.equals("process reaper")
225226
&& !tname.equals("DestroyJavaVM")
226227
&& !tname.equals("Common-Cleaner")
227-
&& !tname.equals("Notification Thread")) { //disable system threads
228+
&& !tname.equals("Notification Thread") // disable system threads
229+
&& !"java.util.logging.LogManager$Cleaner".equals(className)) { // disable shutdown hook
228230

229231
byte[] states = new byte[statesNumber];
230232
String n = tname + ", class: " + td.getClassName();

0 commit comments

Comments
 (0)