Fix crossgen2 gc layout handling for TypedReference (#555)
authorJan Vorlicek <janvorli@microsoft.com>
Thu, 5 Dec 2019 19:26:54 +0000 (20:26 +0100)
committerGitHub <noreply@github.com>
Thu, 5 Dec 2019 19:26:54 +0000 (20:26 +0100)
commitf72a3217606068a3ab4a67e7255a034726d8c3b3
tree5460acd961b6ac655246bef209e8ea9567d9d1d5
parent89985be1cb58d76b6b6fdaa0fc1676492d1aef85
Fix crossgen2 gc layout handling for TypedReference (#555)

* Fix crossgen2 gc layout handling for TypedReference

The getClassGCLayout jit interface method was not handling TypedReference
explicitly like its runtime counterpart. That was causing the layout to
be incorrect for TypedReference and resulted in 100 failures (asserts)
in the coreclr pri1 tests build and one framework assembly build with
crossgen2.
The assert in JIT was in Linux specific code path, so we weren't hitting
it on Windows.
With this fix, the build and test run results match the Windows ones.

* Remove the System.Runtime.Serialization.Formatters from exclusions

The assembly is now compiled ok
src/coreclr/src/tools/Common/JitInterface/CorInfoImpl.cs
src/coreclr/src/tools/ReadyToRun.SuperIlc/BuildFolderSet.cs