oom (#26457) (#26983)
authorMaoni Stephens <Maoni0@users.noreply.github.com>
Thu, 3 Oct 2019 19:44:36 +0000 (12:44 -0700)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 19:44:36 +0000 (12:44 -0700)
commit97838277c6790c5c98f68772569790489967740c
tree0e983c17ed19bf7e328c7b5657e7d84a37f0f97a
parente02a3e1c914f1a042c471a4195bc6e4428b0fb19
oom (#26457) (#26983)

+ when hardlimit is specified we should only retry when we didn't fail due to commit failure - if commit failed it means we simply didn't have as much memory as what the hardlimit specified. we should throw OOM in this case.

+ added some diag info around OOM history to help with future diagnostics.

(cherry picked from commit 7dca41fd36721068e610c537654765e8e42275d7)
src/gc/gc.cpp
src/gc/gcpriv.h