Remove `readonly` from GCHandle field on Gen2GcCallback (#26509)
commit1dc58da7851f9ce2263cf4b042ed040761549e9c
authorStephen Toub <stoub@microsoft.com>
Wed, 4 Sep 2019 15:58:36 +0000 (4 11:58 -0400)
committerMarek Safar <marek.safar@gmail.com>
Thu, 5 Sep 2019 08:46:55 +0000 (5 10:46 +0200)
treebb57965f265b6778097648b7df1c6daf4bc190c9
parentff7dd88cfaffa7fa430fd3e0e98f4662d0f7dc59
Remove `readonly` from GCHandle field on Gen2GcCallback (#26509)

GCHandle is mutable, and this type does call Free on the handle, but with it marked as readonly, the mutations performed by Free will be done on a copy rather than on the original.

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Gen2GcCallback.cs