From 314e83d9fd5fc5539a00d5cc43c1b6f0bcff2460 Mon Sep 17 00:00:00 2001 From: Andrew Au Date: Fri, 5 May 2023 15:02:59 -0700 Subject: [PATCH] We should not establish a heap hard limit for 32 bit platforms --- 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 820d49d84ecffb..111e315bb4c4d4 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -49693,6 +49693,7 @@ bool gc_heap::compute_hard_limit() bool gc_heap::compute_memory_settings(bool is_initialization, uint32_t& nhp, uint32_t nhp_from_config, size_t& seg_size_from_config, size_t new_current_total_committed) { +#ifdef HOST_64BIT // If the hard limit is specified, the user is saying even if the process is already // running in a container, use this limit for the GC heap. if (!hard_limit_config_p) @@ -49716,6 +49717,7 @@ bool gc_heap::compute_memory_settings(bool is_initialization, uint32_t& nhp, uin { return false; } +#endif //HOST_64BIT #ifdef USE_REGIONS {