Call custom parameterless constructor on structs through Activator (dotnet/coreclr...
authorKoundinya Veluri <kouvel@microsoft.com>
Fri, 7 Apr 2017 06:51:13 +0000 (23:51 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 7 Apr 2017 06:51:13 +0000 (23:51 -0700)
commite43efb99f21b9aa105c9f97a0bb47b5eea6d15fa
tree0c2061c514c77dcb91d4076b40c317f35ffffa65
parent0ea59e03b3eb82f98c74ecfdf38f22f898fba0b7
Call custom parameterless constructor on structs through Activator (dotnet/coreclr#10778)

Fixes dotnet/coreclr#6843
- Disabled caching struct types that have custom parameterless constructors in `ActivatorCache`
- Removed some things relevant to security, which don't apply to CoreCLR

Commit migrated from https://github.com/dotnet/coreclr/commit/b4f28d7470da18ec871ae1240a6c9df2db44da2c
src/coreclr/src/mscorlib/src/System/RtType.cs
src/coreclr/src/mscorlib/src/System/RuntimeHandles.cs
src/coreclr/src/vm/reflectioninvocation.cpp
src/coreclr/src/vm/runtimehandles.h
src/coreclr/tests/src/reflection/ActivateStructDefCtor/ActivateStructDefCtor.il [new file with mode: 0644]
src/coreclr/tests/src/reflection/ActivateStructDefCtor/ActivateStructDefCtor.ilproj [new file with mode: 0644]