[sgen] Do GC handle clearing for domain unloading when world is stopped.
authorMark Probst <mark.probst@gmail.com>
Thu, 30 Apr 2015 19:16:38 +0000 (12:16 -0700)
committerJon Purdy <evincarofautumn@gmail.com>
Thu, 3 Sep 2015 23:13:17 +0000 (16:13 -0700)
commit197b625b12cfaad61e692e3d37527c6d172b3a3b
treed9d2cd85436a9ff11ea8291147cf10e0ef67484a
parent1c6d1f6d17c572533740f62bb122e693ee75a091
[sgen] Do GC handle clearing for domain unloading when world is stopped.

Previously we had two places where GC handles were cleared:

`mono_gchandle_free_domain()`, which was called with the world running.

`mono_gc_clear_domain()`, which ran with the world stopped.

The first one doesn't do anything anymore now.  The reason the callback is
still there is because that's where Boehm clears the GC handles.
mono/metadata/sgen-client-mono.h
mono/metadata/sgen-mono.c
mono/sgen/sgen-fin-weak-hash.c