Enable delegate marshalling for collectible types (dotnet/coreclr#20158)
authorJan Vorlicek <janvorli@microsoft.com>
Fri, 28 Sep 2018 20:09:24 +0000 (22:09 +0200)
committerGitHub <noreply@github.com>
Fri, 28 Sep 2018 20:09:24 +0000 (22:09 +0200)
commite76c1cc3e00e93bf56442bdf9500b4c287b6a0e4
treeacdbbd6aadee82185872c73d39024c680409b7e4
parent92ccfe931f12957460c8355d8a90a89df1bc2f65
Enable delegate marshalling for collectible types (dotnet/coreclr#20158)

* Enable delegate marshalling for collectible types

This change is trivial - it just removes checks preventing the delegate
marshalling for collectible types. The unmanaged to managed thunks are
allocated from a global LoaderAllocator and they are released when the
corresponding managed delegates are collected. So for unloadability, we
don't need to change this behavior in any way.

* Disable CoreFX tests outdated by the change

Commit migrated from https://github.com/dotnet/coreclr/commit/49209e181103006603e2cf4e05dccb564bef537d
src/coreclr/src/System.Private.CoreLib/Resources/Strings.resx
src/coreclr/src/vm/comdelegate.cpp
src/coreclr/tests/CoreFX/CoreFX.issues.json