Porting desktop changes to coreclr. This fixes the following:
authorMaoni0 <maonis@microsoft.com>
Fri, 10 Mar 2017 19:39:09 +0000 (11:39 -0800)
committerMaoni0 <maonis@microsoft.com>
Fri, 10 Mar 2017 19:39:09 +0000 (11:39 -0800)
commit350ad616903607b3971d910808a6ac25ea627ad6
tree93a73c7abb1f9285512960944a2be6e2e3582012
parent8e46c20e9d0aef467063b921dc99fe6a525d2aaf
Porting desktop changes to coreclr. This fixes the following:

1) https://github.com/dotnet/coreclr/issues/6809
2) when we do a minimal GC, we need to maintain the states correctly (sync up tables and clear bricks for the portion that we don't need in a normal GC but do need in minimal GC)

Commit migrated from https://github.com/dotnet/coreclr/commit/4627704051a81c65d81771d7e776b676b8a2d44f
src/coreclr/src/gc/gc.cpp
src/coreclr/src/gc/gcpriv.h