From 0429344aa272999f01ea312634e651f888d869d9 Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Fri, 5 Feb 2021 19:26:13 -0800 Subject: [PATCH] The min address within the segment should be computed using max (#47926) --- src/coreclr/gc/gc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index acfbed1..f57662b 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -22139,7 +22139,7 @@ void gc_heap::background_process_mark_overflow_internal (uint8_t* min_add, uint8 if (heap_segment_overflow_p (seg)) { assert (!concurrent_p); - current_min_add = min (heap_segment_mem (seg), min_add); + current_min_add = max (heap_segment_mem (seg), min_add); current_max_add = min (heap_segment_allocated (seg), max_add); } #endif //USE_REGIONS -- 2.7.4