diff --git a/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.java b/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.java index ad087c04a08c..e979c4100f82 100644 --- a/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.java +++ b/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.java @@ -52,6 +52,7 @@ import org.jetbrains.annotations.Nullable; import javax.swing.*; import java.util.*; +import java.util.concurrent.ConcurrentHashMap; @State( name = "RunManager", @@ -68,7 +69,7 @@ public class RunManagerImpl extends RunManagerEx implements PersistentStateCompo private final Map myTemplateConfigurationsMap = new TreeMap<>(); private final Map myConfigurations = new LinkedHashMap<>(); // template configurations are not included here - private final Map mySharedConfigurations = new THashMap<>(); + private final Map mySharedConfigurations = new ConcurrentHashMap<>(); private final Map> myConfigurationToBeforeTasksMap = new WeakHashMap<>(); // When readExternal not all configuration may be loaded, so we need to remember the selected configuration