From c6a0f015f38943d8a1efbaf06beb7a7cb8df3a3c Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Tue, 5 Aug 2014 15:34:02 +0400 Subject: [PATCH] myInactiveSlaveBreakpoints requires synchronization --- .../src/com/intellij/xdebugger/impl/XDebugSessionImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java index 39d1668c8d3e..f28b9b501019 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java @@ -91,7 +91,7 @@ public class XDebugSessionImpl implements XDebugSession { private XDebugProcess myDebugProcess; private final Map, CustomizedBreakpointPresentation> myRegisteredBreakpoints = new THashMap, CustomizedBreakpointPresentation>(); - private final Set> myInactiveSlaveBreakpoints = new SmartHashSet>(); + private final Set> myInactiveSlaveBreakpoints = Collections.synchronizedSet(new SmartHashSet>()); private boolean myBreakpointsDisabled; private final XDebuggerManagerImpl myDebuggerManager; private MyBreakpointListener myBreakpointListener; @@ -420,7 +420,7 @@ public class XDebugSessionImpl implements XDebugSession { public boolean isBreakpointActive(final XBreakpoint b) { ApplicationManager.getApplication().assertReadAccessAllowed(); - return !areBreakpointsMuted() && b.isEnabled() && !myInactiveSlaveBreakpoints.contains(b); + return !areBreakpointsMuted() && b.isEnabled() && !isInactiveSlaveBreakpoint(b); } @Override