MCPcopy Create free account
hub / github.com/IBM/ACE-RISCV / dealloc

Method dealloc

security-monitor/src/core/heap_allocator/allocator.rs:154–159  ·  view source on GitHub ↗
(&self, ptr: *mut u8, layout: Layout)

Source from the content-addressed store, hash-verified

152 }
153
154 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
155 // perform layout adjustments
156 let (size, _) = LinkedListAllocator::size_align(layout);
157
158 unsafe { self.lock().add_free_region(ptr as usize, size) }
159 }
160}

Callers

nothing calls this directly

Calls 2

add_free_regionMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected