Local GC - Fix GCToOSInterface::GetPhysicalMemoryLimit (dotnet/coreclr#20495)
authorDavid Mason <davmason@microsoft.com>
Sat, 20 Oct 2018 00:41:25 +0000 (17:41 -0700)
committerGitHub <noreply@github.com>
Sat, 20 Oct 2018 00:41:25 +0000 (17:41 -0700)
commit949b9e880c4637f7f4f2e3b08358c6d8a00e0094
treef0eb238ba6bc822befc6af3a63954488c711cc89
parentbe5a4d310673cd09c0de70c58129035726f90676
Local GC - Fix GCToOSInterface::GetPhysicalMemoryLimit (dotnet/coreclr#20495)

We weren't setting memStatus->dwLength so the call to GlobalMemoryStatusEx would fail and we would return 0. This caused the standalone GC to get in to a state where we wouldn't allocate more memory for the GC heap even if there was plenty available on the machine.

Commit migrated from https://github.com/dotnet/coreclr/commit/3ff82040ea7be4f8c260b237690f2f0553c7cac6
src/coreclr/src/gc/windows/gcenv.windows.cpp