Fix and re-enable some finalizer tests (dotnet/coreclr#22771)
authorAndy Ayers <andya@microsoft.com>
Mon, 25 Feb 2019 23:50:03 +0000 (15:50 -0800)
committerGitHub <noreply@github.com>
Mon, 25 Feb 2019 23:50:03 +0000 (15:50 -0800)
commit5ea2a733e466fd10143583747a2eddf0ccad8666
tree9be6f54d8b90a0fc2302116aed0e1ea2b48c5532
parentf0e9c012975e38e7460afaca3393bd1e4b7a46a8
Fix and re-enable some finalizer tests (dotnet/coreclr#22771)

Mark key allocating methods noinline, otherwise they may get inlined
under jit stress and leave jit temps referring to allocations that the test
expects should be collectible.

Resolves dotnet/coreclr#19218.

Commit migrated from https://github.com/dotnet/coreclr/commit/268a6b777febf10e97badede96dcddd54b54c4e1
src/coreclr/tests/issues.targets
src/coreclr/tests/src/GC/Features/Finalizer/finalizeother/finalizearray.cs
src/coreclr/tests/src/GC/Features/Finalizer/finalizeother/finalizearraysleep.cs
src/coreclr/tests/src/GC/Features/Finalizer/finalizeother/finalizedest.cs
src/coreclr/tests/src/GC/Features/Finalizer/finalizeother/finalizeexcep.cs
src/coreclr/tests/src/GC/Features/Finalizer/finalizeother/finalizeinherit.cs