Commit f7ab749 1 parent 5a3824b commit f7ab749 Copy full SHA for f7ab749
File tree 2 files changed +6
-7
lines changed
model/org/eclipse/jdt/internal/debug/core/model
2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Manifest-Version: 1.0
2
2
Bundle-ManifestVersion : 2
3
3
Bundle-Name : %pluginName
4
4
Bundle-SymbolicName : org.eclipse.jdt.debug; singleton:=true
5
- Bundle-Version : 3.22.0 .qualifier
5
+ Bundle-Version : 3.22.100 .qualifier
6
6
Bundle-ClassPath : jdimodel.jar
7
7
Bundle-Activator : org.eclipse.jdt.internal.debug.core.JDIDebugPlugin
8
8
Bundle-Vendor : %providerName
Original file line number Diff line number Diff line change 29
29
import java .util .Set ;
30
30
import java .util .concurrent .Callable ;
31
31
import java .util .concurrent .ConcurrentHashMap ;
32
+ import java .util .concurrent .ConcurrentMap ;
32
33
import java .util .concurrent .atomic .AtomicInteger ;
33
34
34
35
import org .eclipse .core .resources .IFile ;
@@ -247,7 +248,7 @@ public class JDIDebugTarget extends JDIDebugElement implements
247
248
* Evaluation engine cache by Java project. Engines are disposed when this
248
249
* target terminates.
249
250
*/
250
- private final Map <IJavaProject , IAstEvaluationEngine > fEngines = new HashMap <>(2 );
251
+ private final ConcurrentMap <IJavaProject , IAstEvaluationEngine > fEngines = new ConcurrentHashMap <>(2 );
251
252
252
253
/**
253
254
* List of step filters - each string is a pattern/fully qualified name of a
@@ -1836,12 +1837,10 @@ protected void cleanup() {
1836
1837
removeAllBreakpoints ();
1837
1838
DebugPlugin .getDefault ().getBreakpointManager ().enableTriggerPoints (null , true );
1838
1839
fOutOfSynchTypes .clear ();
1839
- Iterator <IAstEvaluationEngine > engines = fEngines .values ().iterator ();
1840
- while (engines .hasNext ()) {
1841
- IAstEvaluationEngine engine = engines .next ();
1840
+ fEngines .values ().removeIf ((IAstEvaluationEngine engine ) -> {
1842
1841
engine .dispose ();
1843
- }
1844
- fEngines . clear ( );
1842
+ return true ;
1843
+ } );
1845
1844
fVirtualMachine = null ;
1846
1845
setThreadStartHandler (null );
1847
1846
setEventDispatcher (null );
You can’t perform that action at this time.
0 commit comments