[Local GC] Ensure that handle creation returns null on failure instead of throwing...
authorSean Gillespie <sean@swgillespie.me>
Mon, 24 Apr 2017 17:44:25 +0000 (10:44 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2017 17:44:25 +0000 (10:44 -0700)
commitaeffede4d4dfa7c6d6028d8931d0287cac08af29
tree9a7e768a7b906b8793f4255168663961e7d2ac14
parent254c79d26875d328b015f1870e1aba3f3b4f1c31
[Local GC] Ensure that handle creation returns null on failure instead of throwing (dotnet/coreclr#11092)

* [Local GC] Ensure that handle creation returns null on failure instead of throwing

* Fix some clang pedantry about jumping past variable initialization

* Throw OOM if initialization of handle store fails

* Perform the handle OOM check in each handle helper

Commit migrated from https://github.com/dotnet/coreclr/commit/69d43a0f8cfe095336b286e7bb892fe49c702e30
src/coreclr/src/gc/gchandletable.cpp
src/coreclr/src/gc/handletable.cpp
src/coreclr/src/gc/handletablecore.cpp
src/coreclr/src/gc/handletablescan.cpp
src/coreclr/src/gc/objecthandle.cpp
src/coreclr/src/vm/appdomain.cpp
src/coreclr/src/vm/appdomain.hpp
src/coreclr/src/vm/gchandleutilities.h