-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a Many sink / EmitterProcessor subscriber disposal leak (#3029)
The EmitterProcessor#remove method causes retaining of subscribers if the removal is done in parallel, as the CAS failure doesn't cause a new loop iteration. This applies to direct instantiations of EmitterProcessor as well as Sinks.many().onBackpressureBuffer sinks. This commit fixes the method to loop back when the CAS fails. Fixes #3028.
- Loading branch information
1 parent
1be0d59
commit adaec72
Showing
2 changed files
with
35 additions
and
13 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