-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DAP] Expand synchronized block to cover sending of stopped message
When running tests from Github Actions, there was a race condition between the code handling the "stopped" message and the code that was trying to continue the execution after the end of the test. Sometimes, the test would try to release the "suspendLatch" before it was set, which would result in the "continue" request effectively being ignored by the debug adapter. This commit extends the synchronized block in the suspend() method so any code trying to call resumeAllThreads() while reacting to the "stopped" message will have to wait until the suspendLatch has been enabled and the execution of the Epsilon script has been suspended by having the Thread wait().
- Loading branch information
1 parent
f5bcd85
commit 972a9a8
Showing
2 changed files
with
29 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters