Mercurial > hg > icedtea8-forest > jdk
changeset 14646:2f117c583973 jdk8u272-b01
8230303: JDB hangs when running monitor command
Reviewed-by: sspitsyn
author | igerasim |
---|---|
date | Tue, 10 Sep 2019 09:08:52 -0700 |
parents | 1affb3bb2b3c |
children | 84c5676f140b 929db9f048e1 |
files | src/share/classes/com/sun/tools/example/debug/tty/TTY.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/example/debug/tty/TTY.java Thu Apr 02 18:18:23 2020 -0300 +++ b/src/share/classes/com/sun/tools/example/debug/tty/TTY.java Tue Sep 10 09:08:52 2019 -0700 @@ -40,6 +40,7 @@ import com.sun.jdi.connect.*; import java.util.*; +import java.util.concurrent.CopyOnWriteArrayList; import java.io.*; public class TTY implements EventNotifier { @@ -48,7 +49,7 @@ /** * List of Strings to execute at each stop. */ - private List<String> monitorCommands = new ArrayList<String>(); + private List<String> monitorCommands = new CopyOnWriteArrayList<>(); private int monitorCount = 0; /**