[release/8.0] [mono] Initialize module's image ALC for dynamic objects (#90912)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 23 Aug 2023 19:51:40 +0000 (12:51 -0700)
committerGitHub <noreply@github.com>
Wed, 23 Aug 2023 19:51:40 +0000 (12:51 -0700)
commit010980181b380f712bde42d3c1efab0e180414fc
tree32a92b719e05180c584580a1c18fa70ed6a4b156
parenta2b869c63c8722947724e0151c681475587be098
[release/8.0] [mono] Initialize module's image ALC for dynamic objects (#90912)

* Use the image's ALC instead of the default one if exists

* Init module's image ALC

* Add runtime test for dynamic objects

* Fix lint

* Disable test on platforms that don't support dynamic code generation

---------

Co-authored-by: Milos Kotlar <kotlarmilos@gmail.com>
src/mono/mono/metadata/sre.c
src/tests/Loader/CustomAttributes/DynamicObjects.cs [new file with mode: 0644]
src/tests/Loader/CustomAttributes/DynamicObjects.csproj [new file with mode: 0644]
src/tests/issues.targets