mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-43728 - do not allow evaluation in not suspended threads
This commit is contained in:
@@ -997,6 +997,10 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
throw EvaluateExceptionUtil.NESTED_EVALUATION_ERROR;
|
||||
}
|
||||
|
||||
if (!getSuspendManager().isSuspended(invokeThread)) {
|
||||
throw EvaluateExceptionUtil.THREAD_WAS_RESUMED;
|
||||
}
|
||||
|
||||
Set<SuspendContextImpl> suspendingContexts = SuspendManagerUtil.getSuspendingContexts(getSuspendManager(), invokeThread);
|
||||
final ThreadReference invokeThreadRef = invokeThread.getThreadReference();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user