card mark stealing fix (#40646)
authorMaoni Stephens <Maoni0@users.noreply.github.com>
Wed, 12 Aug 2020 19:57:19 +0000 (12:57 -0700)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 19:57:19 +0000 (12:57 -0700)
commit1972ba770c9691a51c6eb5f2e3fc88730f5e33e4
tree5ff1ea7bc9782d83f8f0c6f12c150b9f8f13acd8
parent19a4297925e0ac788b0f3fbebdb13a76241d9281
card mark stealing fix (#40646)

When we are doing card mark stealing, different GC threads will be updating n_eph/n_gen
and whichever thread happens to mark the heap last will overwrite previous n_eph/n_gen
with its calculation. We need to accumulate updates from all threads that work on a heap.
src/coreclr/src/gc/gc.cpp
src/coreclr/src/gc/gcconfig.h
src/coreclr/src/gc/gcpriv.h