Fix singlinkgen test.
authorSejong Oh <sejooh@microsoft.com>
Fri, 1 Apr 2016 23:09:00 +0000 (16:09 -0700)
committerSejong Oh <sejooh@microsoft.com>
Fri, 1 Apr 2016 23:09:00 +0000 (16:09 -0700)
commit06fbffbab3d4c0ff7205984a03feec0b2a561806
tree5db1293d12bc8f5c7b477fa0b21c9d18477b1b25
parent27525a77cd24ea8da4bd587d259181955f69b094
Fix singlinkgen test.

If the address of SingLink is stored at stack, GC.Collect() cannot collect
the object since the address variable is still alive at stack.

Commit migrated from https://github.com/dotnet/coreclr/commit/030136228abccb8b6d4737f92358bec8a9a50c09
src/coreclr/tests/src/GC/Scenarios/SingLinkList/singlinkgen.cs