[reflection] Only duplicate MonoMarshalSpec strings for custom types (mono/mono#17175)
authorRyan Lucia <rylucia@microsoft.com>
Fri, 4 Oct 2019 17:41:56 +0000 (13:41 -0400)
committerAleksey Kliger (λgeek) <alklig@microsoft.com>
Fri, 4 Oct 2019 17:41:56 +0000 (13:41 -0400)
commite80cf0e8f9207279231e69c5bc49c938287b792f
tree6ca2fdc7f9bfedd232f42bcf29d990f0a2365865
parentda34c2f098298e4efac4223d54cc708ac5aed2ea
[reflection] Only duplicate MonoMarshalSpec strings for custom types (mono/mono#17175)

* [reflection] only duplicate MonoMarshalSpec strings for custom types

* Add test

Commit migrated from https://github.com/mono/mono/commit/05217395db99f0d02a6737ed0491fa65db96632d
src/mono/mono/metadata/loader.c
src/mono/mono/metadata/sre.c