[domain] Report domain unloads to the profiler when finalizing the domain.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Sat, 9 Apr 2016 01:57:16 +0000 (03:57 +0200)
committerRodrigo Kumpera <kumpera@gmail.com>
Tue, 19 Apr 2016 21:34:46 +0000 (14:34 -0700)
commitc8b20290808563f89d29b22d2fe35eb906cfe725
treed6d9534b01aef5d83ab2c4e43424b6f7bf8b3e88
parent7083567661f88d42ff8fc93e59ce8a88498d807d
[domain] Report domain unloads to the profiler when finalizing the domain.

We would miss the unload event for the root domain because we reported it just
before freeing the domain, by which time the profiler was detached.
mono/metadata/domain.c
mono/metadata/gc.c