Fix DoGcStress for multireg return with GC pointers.
authorSergey Andreenko <seandree@microsoft.com>
Thu, 2 May 2019 22:45:08 +0000 (15:45 -0700)
committerSergey Andreenko <seandree@microsoft.com>
Thu, 2 May 2019 23:01:33 +0000 (16:01 -0700)
commit25314613d7921cc0535d5c059d4385bb226931bc
tree34bade6398ef121f5344ee7c3f5c11dfecb8c350
parent9eb06297350c2a4e9f20637eb2c86480e8a130dd
Fix DoGcStress for multireg return with GC pointers.

Note: we are overprotecting registers here, for example, we always protect 2 registers even if only one is returned. GCStress infrastructure should be able to tolerate extra registers. We have had such examples before (for example when returned a struct without pointers we protected the first reg anyway).

Commit migrated from https://github.com/dotnet/coreclr/commit/353637b8cdb53fc743630aa3e6bc038b1b50162d
src/coreclr/src/vm/gccover.cpp