Fix GC reproting for by-ref-like structs (#16231)
authorKoundinya Veluri <kouvel@users.noreply.github.com>
Tue, 6 Feb 2018 23:59:42 +0000 (15:59 -0800)
committerGitHub <noreply@github.com>
Tue, 6 Feb 2018 23:59:42 +0000 (15:59 -0800)
commite15f90f84692acea3ea6d59a237daf2c1b44812f
tree6f6c5995a10f9aaca5e64e510a8fc65b033713b6
parent5e94fd116eb413273954560bab4f63d6fbc0e04c
Fix GC reproting for by-ref-like structs (#16231)

Fix GC reproting for by-ref-like structs

Fixes https://github.com/dotnet/coreclr/issues/16044:
- Divide by pointer size was removed to produce the proper offset
- Fixed some assertion failures seen in https://github.com/dotnet/coreclr/issues/16229
src/vm/i386/stublinkerx86.cpp
src/vm/object.inl
tests/src/CoreMangLib/system/span/RefStructWithSpan.cs [new file with mode: 0644]
tests/src/CoreMangLib/system/span/RefStructWithSpan.csproj [new file with mode: 0644]