Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix scheduler suspend edge case assertion
Prior to this commit, it was possible for a scheduler thread to suspend even though it wasn't appropriate to do so because another scheduler thread resumed prior to the lock being acquired. This would result in incorrect behavior in the release build and an assertion in the debug build. See the following link for an example of the assertion being triggered: https://circleci.com/gh/ponylang/ponyc/3809?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link This commit fixes the issue by not suspending if the schduler count changed because another thread resumed.
- Loading branch information