diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2015-06-05 18:37:16 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2015-06-05 18:37:16 -0700 |
commit | c6b55569bcfa7c5dd717b96962b4ecc1ed9bdfa3 (patch) | |
tree | 9f42801104ced8d3c0dd5eed4caedd13c462c352 /src | |
parent | d367748d8941cca32bd899f13952a072af62a155 (diff) |
gchandle is not needed anymore
Diffstat (limited to 'src')
-rw-r--r-- | src/csharp/Grpc.Core/Internal/AsyncCallBase.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/csharp/Grpc.Core/Internal/AsyncCallBase.cs b/src/csharp/Grpc.Core/Internal/AsyncCallBase.cs index 54f710ae6f..64713c8c52 100644 --- a/src/csharp/Grpc.Core/Internal/AsyncCallBase.cs +++ b/src/csharp/Grpc.Core/Internal/AsyncCallBase.cs @@ -53,7 +53,6 @@ namespace Grpc.Core.Internal protected readonly object myLock = new object(); - protected GCHandle gchandle; protected CallSafeHandle call; protected bool disposed; @@ -113,9 +112,6 @@ namespace Grpc.Core.Internal { lock (myLock) { - // Make sure this object and the delegated held by it will not be garbage collected - // before we release this handle. - gchandle = GCHandle.Alloc(this); this.call = call; } } @@ -189,7 +185,6 @@ namespace Grpc.Core.Internal { call.Dispose(); } - gchandle.Free(); disposed = true; } |