fixed a bug in updating the gen0 budget for AllocateUninitializedArray (#37148)
authorMaoni Stephens <Maoni0@users.noreply.github.com>
Fri, 29 May 2020 23:57:43 +0000 (16:57 -0700)
committerGitHub <noreply@github.com>
Fri, 29 May 2020 23:57:43 +0000 (16:57 -0700)
commit27dcce57c7fc4cfa6634f3f064edaa92f2f6eb83
tree911013c559d36f181da710dbce31a99afa576c41
parentfec84ae0b81edd71f6f9f5a20c2e484bc3de3253
fixed a bug in updating the gen0 budget for AllocateUninitializedArray (#37148)

For AllocateUninitializedArray, we don't consume all the memory we get
from the gen0 budget but we are not putting back the part we don't consume.
This artificial consumption in budget can mean we trigger a GC way too early
when we haven't actually allocated that much.
src/coreclr/src/gc/gc.cpp