sgen_assert_memory_alloc (NULL, size, description_for_type (type));
memset (p, 0, size);
}
-
- MONO_GC_INTERNAL_ALLOC ((mword)p, size, type);
return p;
}
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*
p = mono_lock_free_alloc (&allocators [index]);
memset (p, 0, size);
- MONO_GC_INTERNAL_ALLOC ((mword)p, size, type);
-
return p;
}
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