Skip to content

Commit a3843e8

Browse files
author
Alex Menkov
committed
8361751: Test sun/tools/jcmd/TestJcmdSanity.java timed out on Windows
Reviewed-by: cjplummer, dholmes, sspitsyn
1 parent 60c29ff commit a3843e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/jdk/sun/tools/jcmd/JcmdBase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -102,6 +102,8 @@ private static final OutputAnalyzer jcmd(boolean requestToCurrentProcess,
102102
launcher.addVMArg(vmArg);
103103
}
104104
}
105+
// Some command output may be lengthy, disable streaming output to avoid deadlocks
106+
launcher.addVMArg("-Djdk.attach.allowStreamingOutput=false");
105107
if (requestToCurrentProcess) {
106108
launcher.addToolArg(Long.toString(ProcessTools.getProcessId()));
107109
}

0 commit comments

Comments
 (0)