diff options
author | Andrew Au <andrewau@microsoft.com> | 2021-06-03 03:32:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 03:32:47 +0300 |
commit | 598929f333be29af6a230da0730ba17368d869c3 (patch) | |
tree | 109fdb688480a9f679e966fd81840735e1b6ed6e /src/coreclr/gc | |
parent | a04c98c499a7a0ea5d4ae78d78d50b5d3b5d4bb6 (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.cpp | 2 |
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)); |