Add limit to number of generics methods to compile by CrossGen (dotnet/coreclr#5383)
authorJohn Chen <jochen@microsoft.com>
Thu, 2 Jun 2016 01:36:23 +0000 (18:36 -0700)
committerJohn Chen <jochen@microsoft.com>
Thu, 2 Jun 2016 01:36:23 +0000 (18:36 -0700)
commite92fb114f4abe0a187732eff5083c521f5e7447e
tree3f3b3949fec45baeb83bf9ac812335ac201dda31
parente29f1ce05d245f9fed69d331d9e079ee0eebdd12
Add limit to number of generics methods to compile by CrossGen (dotnet/coreclr#5383)

Recursive generic definitions can easily make CrossGen take very
long time to complete. This is the cause of a failure in issue dotnet/coreclr#5366.
This is fixed by limiting the number of methods to compile by CrossGen.

Commit migrated from https://github.com/dotnet/coreclr/commit/4b7c2f4e64380e8286b9edc85ff477417bd62c54
src/coreclr/src/vm/compile.cpp
src/coreclr/src/vm/compile.h