Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorAnton Leherbauer2011-05-13 06:33:44 -0400
committerAnton Leherbauer2011-05-13 06:33:44 -0400
commitc1a81dbd6860785a91acf64c65cb04652a7b8dd9 (patch)
tree635c791f6ceda51d606bb04fa9c523ac1bbbdc5c /dsf
parentdb1a6be8f846ed23a18782d1804e15473bf5d4fc (diff)
downloadorg.eclipse.cdt-c1a81dbd6860785a91acf64c65cb04652a7b8dd9.tar.gz
org.eclipse.cdt-c1a81dbd6860785a91acf64c65cb04652a7b8dd9.tar.xz
org.eclipse.cdt-c1a81dbd6860785a91acf64c65cb04652a7b8dd9.zip
Bug 331232 - There are memory leaks with each GDB debug session (partial fix)
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DefaultDsfExecutor.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DefaultDsfExecutor.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DefaultDsfExecutor.java
index 130b50d160..a59e00c78a 100644
--- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DefaultDsfExecutor.java
+++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/DefaultDsfExecutor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2010 Wind River Systems and others.
+ * Copyright (c) 2006, 2011 Wind River Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -498,5 +498,9 @@ public class DefaultDsfExecutor extends ScheduledThreadPoolExecutor
return super.shutdownNow();
}
-
+ @Override
+ protected void terminated() {
+ fThreadToExecutorMap.remove(((DsfThreadFactory)getThreadFactory()).fThread);
+ super.terminated();
+ }
}

Back to the top