[profiler] Lift profiler limitation in mono_class_get_allocation_ftn ().
authorAlex Rønne Petersen <alexrp@xamarin.com>
Fri, 9 Sep 2016 08:16:26 +0000 (10:16 +0200)
committerAlex Rønne Petersen <alexrp@xamarin.com>
Sun, 2 Oct 2016 16:24:41 +0000 (18:24 +0200)
This has not actually been necessary since allocation reporting was moved into
the GC implementations.

mono/metadata/object.c

index 9db69581fbcc77704b0230f94bf300466255d509..0603774589ed0b35babf69bd342d79ad46c03808 100644 (file)
@@ -5457,7 +5457,7 @@ mono_class_get_allocation_ftn (MonoVTable *vtable, gboolean for_box, gboolean *p
 
        *pass_size_in_words = FALSE;
 
-       if (mono_class_has_finalizer (vtable->klass) || mono_class_is_marshalbyref (vtable->klass) || (mono_profiler_get_events () & MONO_PROFILE_ALLOCATIONS))
+       if (mono_class_has_finalizer (vtable->klass) || mono_class_is_marshalbyref (vtable->klass))
                return ves_icall_object_new_specific;
 
        if (vtable->gc_descr != MONO_GC_DESCRIPTOR_NULL) {