diff --git a/src/coreclr/gc/gc.cpp b/src/coreclr/gc/gc.cpp index 1575dfe4dbe329..7f41750d553366 100644 --- a/src/coreclr/gc/gc.cpp +++ b/src/coreclr/gc/gc.cpp @@ -21507,10 +21507,13 @@ int gc_heap::generation_to_condemn (int n_initial, } #ifdef USE_REGIONS - if (!try_get_new_free_region()) + if (!check_only_p) { - dprintf (GTC_LOG, ("can't get an empty region -> full compacting")); - last_gc_before_oom = TRUE; + if (!try_get_new_free_region()) + { + dprintf (GTC_LOG, ("can't get an empty region -> full compacting")); + last_gc_before_oom = TRUE; + } } #endif //USE_REGIONS