Fetch secondary handle only if primary is non-null
authorJan Kotas <jkotas@microsoft.com>
Sat, 29 Apr 2017 14:43:23 +0000 (07:43 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 1 May 2017 17:29:50 +0000 (10:29 -0700)
commitd9501d7cbab1ea4b1bf6b51f8eda178f6dad6ddb
tree1db00e8d765e939826fbfc9a60bb3d4ff872f4e0
parent25253c095cef83465242ac97d834fd097fa8b741
Fetch secondary handle only if primary is non-null

The GC is not tracking the secondary handle once primary gets cleared.

Fixes dotnet/coreclr#11270

Commit migrated from https://github.com/dotnet/coreclr/commit/d9b076c50a6781418a01c1baa166cba0ab15e229
src/coreclr/src/vm/comdependenthandle.cpp