Ensure Ready-to-Run module is activated in generics dictionary lookup (dotnet/coreclr...
authorJohn Chen <jochen@microsoft.com>
Sat, 28 May 2016 17:34:22 +0000 (10:34 -0700)
committerJan Kotas <jkotas@microsoft.com>
Sat, 28 May 2016 17:34:22 +0000 (10:34 -0700)
commit9aa9c485948b0077ebe61f8cc642cc774b4308b6
tree4d67cbb894e302cbb16405d39af0d716fd5ec2f1
parentf6cd9fb99d1b657de1a4d4f5908a5d44d0bd8468
Ensure Ready-to-Run module is activated in generics dictionary lookup (dotnet/coreclr#5288)

Under certain conditions, a Ready-to-Run module is not yet fully
activated when its contents are used. This can cause asserts in
debug build. It can also cause module constructor to be run too late.

Commit migrated from https://github.com/dotnet/coreclr/commit/80b11809300d2b762a5ce09bf5a69d9f7003d06b
src/coreclr/src/vm/genericdict.cpp
src/coreclr/tests/src/readytorun/genericsload/app.config [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/callgenericctor.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/callgenericctor.csproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/genericslib.il [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/genericslib.ilproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/project.json [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/usegenericfield.cs [new file with mode: 0644]
src/coreclr/tests/src/readytorun/genericsload/usegenericfield.csproj [new file with mode: 0644]