Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Au <andrewau@microsoft.com>2021-06-03 03:32:47 +0300
committerGitHub <noreply@github.com>2021-06-03 03:32:47 +0300
commit598929f333be29af6a230da0730ba17368d869c3 (patch)
tree109fdb688480a9f679e966fd81840735e1b6ed6e /src/coreclr/gc
parenta04c98c499a7a0ea5d4ae78d78d50b5d3b5d4bb6 (diff)
Avoid setting the brick of the next region during sweep in plan (#53446)
Diffstat (limited to 'src/coreclr/gc')
-rw-r--r--src/coreclr/gc/gc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp
index 67c9be65336..56e9998adad 100644
--- a/src/coreclr/gc/gc.cpp
+++ b/src/coreclr/gc/gc.cpp
@@ -28536,7 +28536,7 @@ void gc_heap::sweep_region_in_plan (heap_segment* region,
// We only need to make sure we fix the brick the last marked object's end is in.
// Note this brick could have been fixed already.
size_t last_marked_obj_start_b = brick_of (last_marked_obj_start);
- size_t last_marked_obj_end_b = brick_of (last_marked_obj_end);
+ size_t last_marked_obj_end_b = brick_of (last_marked_obj_end - 1);
dprintf (REGIONS_LOG, ("last live obj %Ix(%Ix)-%Ix, fixing its brick(s) %Ix-%Ix",
last_marked_obj_start, method_table (last_marked_obj_start), last_marked_obj_end,
last_marked_obj_start_b, last_marked_obj_end_b));