File tree Expand file tree Collapse file tree
model/org/eclipse/jdt/internal/debug/core/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Manifest-Version: 1.0
22Bundle-ManifestVersion : 2
33Bundle-Name : %pluginName
44Bundle-SymbolicName : org.eclipse.jdt.debug; singleton:=true
5- Bundle-Version : 3.22.0 .qualifier
5+ Bundle-Version : 3.22.100 .qualifier
66Bundle-ClassPath : jdimodel.jar
77Bundle-Activator : org.eclipse.jdt.internal.debug.core.JDIDebugPlugin
88Bundle-Vendor : %providerName
Original file line number Diff line number Diff line change 2929import java .util .Set ;
3030import java .util .concurrent .Callable ;
3131import java .util .concurrent .ConcurrentHashMap ;
32+ import java .util .concurrent .ConcurrentMap ;
3233import java .util .concurrent .atomic .AtomicInteger ;
3334
3435import org .eclipse .core .resources .IFile ;
@@ -247,7 +248,7 @@ public class JDIDebugTarget extends JDIDebugElement implements
247248 * Evaluation engine cache by Java project. Engines are disposed when this
248249 * target terminates.
249250 */
250- private final Map <IJavaProject , IAstEvaluationEngine > fEngines = new HashMap <>(2 );
251+ private final ConcurrentMap <IJavaProject , IAstEvaluationEngine > fEngines = new ConcurrentHashMap <>(2 );
251252
252253 /**
253254 * List of step filters - each string is a pattern/fully qualified name of a
@@ -1836,12 +1837,10 @@ protected void cleanup() {
18361837 removeAllBreakpoints ();
18371838 DebugPlugin .getDefault ().getBreakpointManager ().enableTriggerPoints (null , true );
18381839 fOutOfSynchTypes .clear ();
1839- Iterator <IAstEvaluationEngine > engines = fEngines .values ().iterator ();
1840- while (engines .hasNext ()) {
1841- IAstEvaluationEngine engine = engines .next ();
1840+ fEngines .values ().removeIf ((IAstEvaluationEngine engine ) -> {
18421841 engine .dispose ();
1843- }
1844- fEngines . clear ( );
1842+ return true ;
1843+ } );
18451844 fVirtualMachine = null ;
18461845 setThreadStartHandler (null );
18471846 setEventDispatcher (null );
You can’t perform that action at this time.
0 commit comments