Function jemalloc_sys::sdallocx [−][src]
pub unsafe extern "C" fn sdallocx(ptr: *mut c_void, size: size_t, flags: c_int)
Deallocates previously-allocated memory region referenced by ptr with
size hint.
This makes the space available for future allocations.
If ptr is null, no action occurs.
Safety
The behavior is undefined if:
sizeis not in range[req_size, alloc_size], wherereq_sizeis the size requested when performing the allocation, andalloc_sizeis the allocation size returned bynallocx,sallocx, orxallocx,ptrdoes not match a pointer earlier returned by the memory allocation functions of this crate, or- the memory region referenced by
ptrhas been deallocated.