-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completable/Single Processors more robust top of stack removal (#2116)
Motivation: Completable/Single Processors make a best effort to remove nodes from the underlying data structure upon cancellation. However if the node is the last added and there is concurrent cancellation we may may fail to remove the node and give up leading to increased memory consumption. Modifications: - `ClosableConcurrentStack` should iterate the stack to remove the root node if the first removal attempt fails. Result: More robust cleanup of memory on removal.
- Loading branch information
1 parent
096d4d2
commit 805a73e
Showing
1 changed file
with
35 additions
and
2 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