Skip to content

Fix leak caused by C# context pooling (when GrpcEnvironment is shutdown).#14113

Merged
mehrdada merged 1 commit intogrpc:v1.9.xfrom
jtattermusch:fix_csharp_pooling_leak
Jan 22, 2018
Merged

Fix leak caused by C# context pooling (when GrpcEnvironment is shutdown).#14113
mehrdada merged 1 commit intogrpc:v1.9.xfrom
jtattermusch:fix_csharp_pooling_leak

Conversation

@jtattermusch
Copy link
Copy Markdown
Contributor

Fixes #14021 in v1.9.x.

When pooling BatchContextSafeHandle and RequestCallSafeHandle objects, we make sure that the pooled object don't contain a reference to the object pool (which in turn has references to other objects created by GrpcEnvironment), because they can keep references from an already-shutdown GrpcEnviroment alive even though they should have been dead.

I verified that the fix is effective with a variation of the example from #14021 and #13941.

@mehrdada mehrdada merged commit 2c5964f into grpc:v1.9.x Jan 22, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants