[runtime] Handle RuntimeWrappedException and dynamic methods using a SRE as module...
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 25 Sep 2017 22:35:41 +0000 (15:35 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 25 Sep 2017 22:35:41 +0000 (15:35 -0700)
commit02155d6cebd7e06f7339c91efb343fbaaf4f36a7
tree6553d0d5b9304af40fc81bbd1fe2a7efa2743f33
parent446728b335f0492671fc21ce76b27d063dcb7653
[runtime] Handle RuntimeWrappedException and dynamic methods using a SRE as module. Fixes #59334

A DynamicMethod can be placed in a SRE module and it must respect any RuntimeCompatibilityAttribute set on that assembly.

We do that by updating the runtime side list of cattr in the AssemblyBuilder when a RuntimeCompatibilityAttribute is set using SetCustomAttribute.
mcs/class/corlib/System.Reflection.Emit/AssemblyBuilder.cs
mcs/class/corlib/Test/System.Reflection.Emit/DynamicMethodTest.cs
mono/metadata/icall-def.h
mono/metadata/object-internals.h
mono/metadata/sre.c