This fixes a perf bug in revisit_written_pages for regions - if we are called with...
authorPeter Sollich <petersol@microsoft.com>
Fri, 6 Aug 2021 19:08:15 +0000 (21:08 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Aug 2021 19:08:15 +0000 (12:08 -0700)
commitfa21e0bc7b579d74fdd7b48c600e7e4b5256ca7d
tree0c9e3c03c98612fd203c3754fd12cb3ef8fbd511
parentb7f505dcb13f0fd80a33c962446bf13f87a31b33
This fixes a perf bug in revisit_written_pages for regions - if we are called with concurrent_p == FALSE, we start iterating at gen 0. This causes the small_object_segments to be set to FALSE when we are done with gen 0. This is of course incorrect, we should set this flag when we are done with gen 2. Fix is to modify the if-condition to test for the end of gen 2. (#56987)
src/coreclr/gc/gc.cpp