mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[debugger] IDEA-350602 Remove assertion: suspend-thread context can point to another thread while stepping in it
Suppose, two threads (A and B) in suspend-thread mode are suspended and stepping performed in one of them (A). To avoid context switch, the debugger sets active execution stack in the context of the other suspended thread (B) to the thead performed stepping (A). So the removed assertion was not correct in this situation. GitOrigin-RevId: 684f73090982ceee6adc17227aa85326a4946805
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d98f89c32b
commit
812fe3f28a
@@ -337,9 +337,6 @@ public abstract class SuspendContextImpl extends XSuspendContext implements Susp
|
||||
setThread(activeThread);
|
||||
}
|
||||
if (activeThread != null) {
|
||||
if (getSuspendPolicy() == EventRequest.SUSPEND_EVENT_THREAD && activeThread != myThread) {
|
||||
LOG.error("Context with suspend-thread policy must have only the corresponding myActiveExecutionStack");
|
||||
}
|
||||
myActiveExecutionStack = new JavaExecutionStack(activeThread, myDebugProcess, myThread == activeThread);
|
||||
myActiveExecutionStack.initTopFrame();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user