[Local GC] Forbid inclusion of gcscan.h from VM and DAC directories (dotnet/coreclr...
authorSean Gillespie <sean@swgillespie.me>
Wed, 22 Mar 2017 05:00:12 +0000 (22:00 -0700)
committerGitHub <noreply@github.com>
Wed, 22 Mar 2017 05:00:12 +0000 (22:00 -0700)
commit00830cda5b38f1001bbe2334b10fb2302148d537
tree961f71bacf576e968788f66df4797eff55fac600
parent130682045c207e810585106373711b7778ec6785
[Local GC] Forbid inclusion of gcscan.h from VM and DAC directories (dotnet/coreclr#10332)

* Forbid inclusion of gcscan.h from VM and DAC directories

* Address code review feedback - hoist IsGCHeapInitialized check to an assert, since the heap should definitely be initialized if we are validating objects that ostensibly came from it

Commit migrated from https://github.com/dotnet/coreclr/commit/d5906ff3e0d0f864c1432f1f39d586ca3d79fbb6
13 files changed:
src/coreclr/src/debug/daccess/enummem.cpp
src/coreclr/src/debug/daccess/request.cpp
src/coreclr/src/debug/daccess/request_svr.cpp
src/coreclr/src/debug/ee/dactable.cpp
src/coreclr/src/gc/gcee.cpp
src/coreclr/src/gc/gcimpl.h
src/coreclr/src/gc/gcinterface.h
src/coreclr/src/gc/gcscan.cpp
src/coreclr/src/gc/gcscan.h
src/coreclr/src/inc/dacvars.h
src/coreclr/src/vm/object.cpp
src/coreclr/src/vm/stubhelpers.cpp
src/coreclr/src/vm/syncblk.cpp