mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-05 02:02:31 +00:00
8081634: Concurrent usage of a StringBuilder causes test intermittent failures
Reviewed-by: sla, sspitsyn
This commit is contained in:
parent
dc2bada880
commit
5e723c42f9
@ -196,7 +196,9 @@ final class ManagementAgentJcmd {
|
||||
l.addToolArg(cmd);
|
||||
}
|
||||
|
||||
StringBuilder output = new StringBuilder();
|
||||
// this buffer will get filled in different threads
|
||||
// -> must be the synchronized StringBuffer
|
||||
StringBuffer output = new StringBuffer();
|
||||
|
||||
AtomicBoolean portUnavailable = new AtomicBoolean(false);
|
||||
Process p = ProcessTools.startProcess(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user