forked from ponylang/ponyc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make cycle detector block checking incremental
In PR ponylang#2709, @sylvanc pointed out a concern regarding the cycle detector creating a message storm due to how it would ask all actors whether they are blocked or not on every interval. This commit changes the logic so that the cycle detector only asks set number of actors whether they are blocked or not. If it is not able to ask all actors, it will resume iterating actors on the next iteration. This commit also addresses @SeanTAllen's concern regarding the conditional check order using `ponyint_actor_getnoblock`.
- Loading branch information
Showing
2 changed files
with
21 additions
and
3 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