Ensure gen0_max_size to be initially >= gen0_min_size
authorSuchiman <robinsue@live.de>
Sun, 9 Jun 2019 16:18:44 +0000 (18:18 +0200)
committerJan Kotas <jkotas@microsoft.com>
Wed, 12 Jun 2019 03:26:23 +0000 (20:26 -0700)
commit6379c4e1e27c3a664104d10e1697190f612729b6
tree7199536cd7e6a1c3ce133993b03307a270166d74
parentf1c03d1cd80d656f3d5e37b4d946d6f185de4d19
Ensure gen0_max_size to be initially >= gen0_min_size

Otherwise, gen0_min_size is eventually capped by gen0_max_size, which makes it impossible to raise gen0 size above the default max sizes for gen0.
This is required for some scenarios (CppCodeGen, WASM) in CoreRT.

Commit migrated from https://github.com/dotnet/coreclr/commit/2052c9c1d7be368ed687a8958b9f98a7930e3698
src/coreclr/src/gc/gc.cpp