Add missing pin to two tests and re-enable for GC stress (dotnet/coreclr#24738)
authorAndy Ayers <andya@microsoft.com>
Thu, 23 May 2019 17:35:15 +0000 (10:35 -0700)
committerGitHub <noreply@github.com>
Thu, 23 May 2019 17:35:15 +0000 (10:35 -0700)
commit71583aa9c14947bae483c924ed55b3f6963af02f
treed724a3ebd7fed94c72edb3585f7610a6fa0bb6a9
parent549e37fdd8cecdd9ea9b19b304b0466897216bb5
Add missing pin to two tests and re-enable for GC stress (dotnet/coreclr#24738)

Test was evidently assuming that because an object that referred to an array
was pinned, so was the array. Failure was intermittent, GC is not guaranteed
to move objects or to render their former contents inaccessible.

Fixes dotnet/coreclr#24173.
Fixes dotnet/coreclr#24464.

Commit migrated from https://github.com/dotnet/coreclr/commit/9271757d2c917c5650c459a4c3fa648c2968a591
src/coreclr/tests/src/JIT/Methodical/ELEMENT_TYPE_IU/_il_dbgu_fld.ilproj
src/coreclr/tests/src/JIT/Methodical/ELEMENT_TYPE_IU/_il_relu_fld.ilproj
src/coreclr/tests/src/JIT/Methodical/ELEMENT_TYPE_IU/u_fld.il