From 1540dfdee1e8ff02c6afa6332d8cda1a74bf41f7 Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:35:10 -0700 Subject: [PATCH 1/3] Disable NoGCRegion Test due to intermittent failure --- src/tests/issues.targets | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/issues.targets b/src/tests/issues.targets index 958ef8573bdac..f25c5cbdc69ec 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -20,7 +20,9 @@ https://github.com/dotnet/runtime/issues/86112 - + + https://github.com/dotnet/runtime/issues/100149 + From 1dd8a6dbb9f53fd08074d0814bbe231238a2cc70 Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:37:12 -0700 Subject: [PATCH 2/3] Fix alignment --- src/tests/issues.targets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/issues.targets b/src/tests/issues.targets index f25c5cbdc69ec..c4eb7517ea8b8 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -22,7 +22,8 @@ https://github.com/dotnet/runtime/issues/100149 - + + From a1a89fc7267fd7d4b507920684d73b45229a09b0 Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Tue, 26 Mar 2024 15:07:43 -0700 Subject: [PATCH 3/3] disable optimizations for a method which is causing assert failures. --- src/coreclr/gc/gc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index 51220dbfa6b1b..ea7e85a924224 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -24199,6 +24199,7 @@ void gc_heap::garbage_collect (int n) #define mark_stack_empty_p() (mark_stack_base == mark_stack_tos) +#pragma optimize("", off) inline size_t gc_heap::get_promoted_bytes() { @@ -24245,6 +24246,7 @@ size_t gc_heap::get_promoted_bytes() #endif //MULTIPLE_HEAPS #endif //USE_REGIONS } +#pragma optimize("", on) #ifdef USE_REGIONS void gc_heap::sync_promoted_bytes()