CoreRT change
authorSuchiman <robinsue@live.de>
Tue, 11 Jun 2019 19:38:23 +0000 (21:38 +0200)
committerJan Kotas <jkotas@microsoft.com>
Wed, 12 Jun 2019 03:26:23 +0000 (20:26 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/c3ac0c460382519c0344f3e87626846ab6fd96a1

src/coreclr/src/gc/gc.cpp

index 68a0dcd..820e66d 100644 (file)
@@ -31817,20 +31817,16 @@ void gc_heap::background_ephemeral_sweep()
             if (i >= 1)
             {
                 thread_gap (plug_end, end - plug_end, current_gen);
-                fix_brick_to_highest (plug_end, end);
             }
             else
             {
                 heap_segment_allocated (ephemeral_heap_segment) = plug_end;
                 // the following line is temporary.
                 heap_segment_saved_bg_allocated (ephemeral_heap_segment) = plug_end;
-#ifdef VERIFY_HEAP
-                if (GCConfig::GetHeapVerifyLevel() & GCConfig::HEAPVERIFY_GC)
-                {
-                    make_unused_array (plug_end, (end - plug_end));
-                }
-#endif //VERIFY_HEAP
+                make_unused_array (plug_end, (end - plug_end));
             }
+
+            fix_brick_to_highest (plug_end, end);
         }
 
         dd_fragmentation (dynamic_data_of (i)) =