-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop user context when closing client interceptor pipeline (#1279)
Motivation: Interceptor pipelines hold arrays of interceptor contexts. Each context maintains a reference back to the pipeline. However the client interceptor pipeline never broke this reference cycle when closing the pipeline which means that using client interceptors introduces a memory leak. Modifications: - Explicitly remove all user contexts when the client interceptor pipeline is torn down (the server pipeline already does this so is unaffected) - Add allocation tests so we can see the overhead of using interceptors (and, more importantly, whether allocations are freed) Result: Using client interceptors no longer leaks.
- Loading branch information
Showing
5 changed files
with
131 additions
and
6 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
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
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