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)
src/coreclr/gc/gc.cpp

index dcff17ec0273764816cb08e8f23274e4e7aa614c..0d398672093888299323b1d43655fc50aa6873ce 100644 (file)
@@ -33410,7 +33410,7 @@ void gc_heap::revisit_written_pages (BOOL concurrent_p, BOOL reset_only_p)
             seg = heap_segment_next_rw (seg);
         }
 
-        if (i < loh_generation)
+        if (i == soh_gen2)
         {
             if (!reset_only_p)
             {