[sgen] Move DTrace support to Mono-specific code.
[mono.git] / mono / metadata / sgen-internal.c
index 9f5573a6b77fc4f583d6e25fa5b6189dd3d7b6b6..a71a6829687ac18e696dc8c23ec6b8989d409317 100644 (file)
@@ -180,8 +180,6 @@ sgen_alloc_internal_dynamic (size_t size, int type, gboolean assert_on_failure)
                        sgen_assert_memory_alloc (NULL, size, description_for_type (type));
                memset (p, 0, size);
        }
-
-       MONO_GC_INTERNAL_ALLOC ((mword)p, size, type);
        return p;
 }
 
@@ -195,8 +193,6 @@ sgen_free_internal_dynamic (void *addr, size_t size, int type)
                sgen_free_os_memory (addr, size, SGEN_ALLOC_INTERNAL);
        else
                mono_lock_free_free (addr, block_size (size));
-
-       MONO_GC_INTERNAL_DEALLOC ((mword)addr, size, type);
 }
 
 void*
@@ -217,8 +213,6 @@ sgen_alloc_internal (int type)
        p = mono_lock_free_alloc (&allocators [index]);
        memset (p, 0, size);
 
-       MONO_GC_INTERNAL_ALLOC ((mword)p, size, type);
-
        return p;
 }
 
@@ -234,11 +228,6 @@ sgen_free_internal (void *addr, int type)
        g_assert (index >= 0 && index < NUM_ALLOCATORS);
 
        mono_lock_free_free (addr, allocator_block_sizes [index]);
-
-       if (MONO_GC_INTERNAL_DEALLOC_ENABLED ()) {
-               int size G_GNUC_UNUSED = allocator_sizes [index];
-               MONO_GC_INTERNAL_DEALLOC ((mword)addr, size, type);
-       }
 }
 
 void