Fix trim_youngest_desired for the case of high memory load and huge main memory ...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thu, 2 Sep 2021 20:43:02 +0000 (13:43 -0700)
committerGitHub <noreply@github.com>
Thu, 2 Sep 2021 20:43:02 +0000 (13:43 -0700)
commit5e5c1d77cc4ac9d570e4228cc03aa2ed76e75034
treee5325e2dad0d246e3ba74518abaa808ef12e7a53
parentb73658a7f12859f4e2198c220ac7a40b5e2ffcc9
Fix trim_youngest_desired for the case of high memory load and huge main memory - the return value should never be larger than total_new_allocation. (#58538)

Co-authored-by: Peter Sollich <petersol@microsoft.com>
src/coreclr/gc/gc.cpp