Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Cortell2007-12-14 21:15:18 +0000
committerJohn Cortell2007-12-14 21:15:18 +0000
commit56dd415d35f869a4c76739e7d846240345ab714c (patch)
tree8184d53ecb660ae723e95255389c90a03699d274 /debug/org.eclipse.cdt.debug.core
parent0408d6e90179a6ecb1fba55077db24cdcec89da7 (diff)
downloadorg.eclipse.cdt-56dd415d35f869a4c76739e7d846240345ab714c.tar.gz
org.eclipse.cdt-56dd415d35f869a4c76739e7d846240345ab714c.tar.xz
org.eclipse.cdt-56dd415d35f869a4c76739e7d846240345ab714c.zip
Adjusted minor inneficiency someone here noticed.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
index 32887939202..4b5728d0f85 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/CBreakpointManager.java
@@ -459,9 +459,10 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
if ( breakpoint == null ) {
breakpoint = createLocationBreakpoint( cdiBreakpoint );
}
- synchronized( getBreakpointMap() ) {
- if ( breakpoint != null )
+ if ( breakpoint != null ) {
+ synchronized( getBreakpointMap() ) {
getBreakpointMap().put( breakpoint, cdiBreakpoint );
+ }
}
if ( breakpoint != null ) {

Back to the top