From ae50fd41a1aca3737e64f406be054f32a87f7308 Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:36:38 -0700 Subject: [PATCH 1/2] enable regions for MacOS --- src/coreclr/gc/gcpriv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/gc/gcpriv.h b/src/coreclr/gc/gcpriv.h index d970fa97566616..1c3212048c51a4 100644 --- a/src/coreclr/gc/gcpriv.h +++ b/src/coreclr/gc/gcpriv.h @@ -137,8 +137,8 @@ inline void FATAL_GC_ERROR() // // This means any empty regions can be freely used for any generation. For // Server GC we will balance regions between heaps. -// For now disable regions for StandAlone GC, NativeAOT and MacOS builds -#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && !defined(__APPLE__) +// For now disable regions for StandAlone GC +#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) #define USE_REGIONS #endif //HOST_64BIT && BUILD_AS_STANDALONE From 82b471e7e1ae14cabcacd9286a29ab9478edb5bc Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Wed, 12 Jul 2023 14:28:14 -0700 Subject: [PATCH 2/2] try with macos arm64 --- src/coreclr/gc/gcpriv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/gc/gcpriv.h b/src/coreclr/gc/gcpriv.h index 1c3212048c51a4..00942a0cb9d668 100644 --- a/src/coreclr/gc/gcpriv.h +++ b/src/coreclr/gc/gcpriv.h @@ -138,7 +138,7 @@ inline void FATAL_GC_ERROR() // This means any empty regions can be freely used for any generation. For // Server GC we will balance regions between heaps. // For now disable regions for StandAlone GC -#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) +#if defined (HOST_64BIT) && !defined (BUILD_AS_STANDALONE) && (defined(__APPLE__) && defined(HOST_ARM64)) #define USE_REGIONS #endif //HOST_64BIT && BUILD_AS_STANDALONE