Fix issue in sort_mark_list causing AVs in merge_mark_lists.
authorPeter Sollich <petersol@microsoft.com>
Tue, 28 Jul 2020 09:05:19 +0000 (11:05 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2020 09:05:19 +0000 (11:05 +0200)
commitc40de2b15937902347cdf2a8a5254bc55fe12918
treedd3e457ddbd6e2901adaa5dec9c485ccb766b0da
parent2bfbb56fdc293f9ca44702782bd020805e4fa428
Fix issue in sort_mark_list causing AVs in merge_mark_lists.

This happens during gen 2 GCs where at least one GC thread sees no surviving objects. The bug causes merge_mark_lists to attempt the merge when in fact we are not using the mark lists at all during gen 2 GCs.

Fix comment in sort_mark_list.
src/coreclr/src/gc/gc.cpp