Fix and re-enable some finalizer tests (#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)
commit268a6b777febf10e97badede96dcddd54b54c4e1
treebb7a4c5f2809f098521e9c50510e92c0286be8cf
parentea5971a6fe1672f0334c9530d68e8621a9877128
Fix and re-enable some finalizer tests (#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 #19218.
tests/issues.targets
tests/src/GC/Features/Finalizer/finalizeother/finalizearray.cs
tests/src/GC/Features/Finalizer/finalizeother/finalizearraysleep.cs
tests/src/GC/Features/Finalizer/finalizeother/finalizedest.cs
tests/src/GC/Features/Finalizer/finalizeother/finalizeexcep.cs
tests/src/GC/Features/Finalizer/finalizeother/finalizeinherit.cs