[Local GC] Move some EE-specific finalize-on-unload logic out of the GC (dotnet/corec...
authorSean Gillespie <sean@swgillespie.me>
Sat, 1 Apr 2017 21:25:46 +0000 (14:25 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Apr 2017 21:25:46 +0000 (14:25 -0700)
commit2e5fa1fde20890c36b193da740231286382207aa
tree20e8557b186f317504f8d7250bb8caea1ee31335
parente92883c54e60ec3f95e41529abd438abf59169f2
[Local GC] Move some EE-specific finalize-on-unload logic out of the GC (dotnet/coreclr#10598)

* Move some EE-specific logic to a callback on GCToEEInterface

* Fix the sample

* Consistent style for pointers

* Code review feedback: Move app domain index check into EE callback and make ShouldFinalizeObjectForUnload always return true (due to CoreCLR not having app domains)

* Code review feedback: Fix a comment and add a TODO for bringing these changes to desktop

Commit migrated from https://github.com/dotnet/coreclr/commit/41617fee235d22d9e6dc1fa31548de63637551fa
src/coreclr/src/gc/env/gcenv.ee.h
src/coreclr/src/gc/gc.cpp
src/coreclr/src/gc/gcenv.ee.standalone.inl
src/coreclr/src/gc/gcinterface.ee.h
src/coreclr/src/gc/sample/gcenv.ee.cpp
src/coreclr/src/vm/gcenv.ee.cpp
src/coreclr/src/vm/gcenv.ee.h