Local GC - Fix GCToOSInterface::GetPhysicalMemoryLimit (#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)
commit3ff82040ea7be4f8c260b237690f2f0553c7cac6
tree04eede79cf0d87030891d7606deaa61dcda929bb
parent15c684b458d3134c51dc5c509853ff21efcf38b5
Local GC - Fix GCToOSInterface::GetPhysicalMemoryLimit (#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.
src/gc/windows/gcenv.windows.cpp