[profiler] Remove some indirection in setting up GC events.
commitb6518ecfb83a93a6daf74055ca81d1c21bab12fc
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 9 Sep 2016 08:23:41 +0000 (9 10:23 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sun, 2 Oct 2016 16:25:20 +0000 (2 18:25 +0200)
tree84836de34978a1eada44bd3cf09982f95b6834f2
parent46b3f65045e95d173c6bcd056617ee2d4033ba8d
[profiler] Remove some indirection in setting up GC events.

* mono_gc_enable_events: This did nothing for SGen and we called it
  unconditionally for Boehm. So no point in having it around.
* mono_gc_enable_alloc_events: The performance difference between checking
  a static alloc_events variable versus checking mono_profiler_events is
  marginal at best and doesn't justify the indirection, especially now that
  we support managed allocators while profiling.
mono/metadata/boehm-gc.c
mono/metadata/gc-internals.h
mono/metadata/null-gc.c
mono/metadata/profiler.c
mono/metadata/sgen-mono.c