[Wasm] Ensure monovm_initialize is called on startup and address other startup items...
authorSteve Pfister <steveisok@users.noreply.github.com>
Fri, 7 Aug 2020 13:30:15 +0000 (09:30 -0400)
committerGitHub <noreply@github.com>
Fri, 7 Aug 2020 13:30:15 +0000 (09:30 -0400)
commitd575f10471929f2e2b547fb75f1080a608daa067
tree59b2ac31bded346b8ca4df64ae802960a5d7a48d
parenta0d41ec11310fe43fa2e81040e3e6a1702f18c6c
[Wasm] Ensure monovm_initialize is called on startup and address other startup items (#39446)

This PR addresses:

- Calling monovm_initialize matches how other mono platforms init themselves (Fixes https://github.com/dotnet/runtime/issues/39074)
- Set the entry assembly (Fixes https://github.com/dotnet/runtime/issues/38994)
- Make sure the assembly location is set to empty for assemblies that are loaded from memory (Fixes https://github.com/dotnet/runtime/issues/39650)
25 files changed:
src/libraries/Common/tests/TestUtilities/System/AssemblyPathHelper.cs [new file with mode: 0644]
src/libraries/Common/tests/TestUtilities/TestUtilities.csproj
src/libraries/System.CodeDom/tests/System/CodeDom/Compiler/CompilerResultsTests.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ClientConfigPaths.cs
src/libraries/System.Diagnostics.StackTrace/tests/StackTraceSymbolsTests.cs
src/libraries/System.Diagnostics.StackTrace/tests/System.Diagnostics.StackTrace.Tests.csproj
src/libraries/System.Reflection.Metadata/tests/Metadata/Decoding/CustomAttributeDecoderTests.cs
src/libraries/System.Reflection.Metadata/tests/Metadata/Decoding/SignatureDecoderTests.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/TestUtils/CoreMetadataAssemblyResolver.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/TestUtils/TestUtils.JittedRuntimes.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/TestUtils/TestUtils.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/MetadataLoadContext/PathAssemblyResolver.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/MetadataLoadContext/Scenarios.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/RestrictedApis/RestrictedApis.cs
src/libraries/System.Reflection.MetadataLoadContext/tests/src/Tests/Type/TypeTests.cs
src/libraries/System.Reflection/tests/AssemblyNameTests.cs
src/libraries/System.Reflection/tests/AssemblyTests.cs
src/libraries/System.Runtime.InteropServices.RuntimeInformation/tests/RuntimeIdentifierTests.cs
src/libraries/System.Runtime.Loader/tests/SatelliteAssemblies.cs
src/libraries/System.Runtime/tests/System/Reflection/ModuleTests.cs
src/mono/mono/metadata/appdomain.h
src/mono/mono/metadata/assembly.c
src/mono/mono/metadata/domain-internals.h
src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeAssembly.cs
src/mono/wasm/runtime/driver.c