Add assert to GCHeap::ValidateObjectMember (dotnet/coreclr#10591)
authorSteve MacLean <sdmaclea@qti.qualcomm.com>
Fri, 31 Mar 2017 02:06:23 +0000 (22:06 -0400)
committerJan Kotas <jkotas@microsoft.com>
Fri, 31 Mar 2017 02:06:23 +0000 (19:06 -0700)
commitf6fe457f9483c614afde7c89f6ae414e476c84b2
treee2fa27414cee8f28eebfa867da84615bf44af9fd
parent3977fe956c1a759075b7f64d374d1d857c58c30b
Add assert to GCHeap::ValidateObjectMember (dotnet/coreclr#10591)

In presence of a corrupt heap, objects can contain
null method table.  Add assertion to prevent segfault
in checked/debug builds.

Commit migrated from https://github.com/dotnet/coreclr/commit/07fa3a32336d2da5d2bf652ad01d33f18b2debaf
src/coreclr/src/gc/gc.cpp