pub fn free_with_size<VM: VMBinding>(
    mmtk: &MMTK<VM>,
    addr: Address,
    old_size: usize
)
Expand description

The standard free except that with the feature malloc_counted_size, MMTk will count the allocated memory into its heap size. Thus the method requires a reference to an MMTk instance, and the size of the memory to free. The addr in the arguments must be an address that is earlier returned from MMTk’s malloc(), calloc() or realloc().