[sgen] Remove bogus mono_profiler_events assert.
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 9 Sep 2016 16:00:36 +0000 (18:00 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sun, 2 Oct 2016 16:29:58 +0000 (18:29 +0200)
This variable can be changed at any time by any thread. It makes no sense to
assert that it has a particular flag.

mono/metadata/sgen-mono.c

index 7966d8f6ab05cd6fe3045d3f36824f63f27da39b..500e8114abd66c8c8bc45dc756b8cfac1fc74d29 100644 (file)
@@ -2056,8 +2056,6 @@ static int moved_objects_idx = 0;
 void
 mono_sgen_register_moved_object (void *obj, void *destination)
 {
-       g_assert (mono_profiler_events & MONO_PROFILE_GC_MOVES);
-
        if (moved_objects_idx == MOVED_OBJECTS_NUM) {
                mono_profiler_gc_moves (moved_objects, moved_objects_idx);
                moved_objects_idx = 0;