MCPcopy Create free account
hub / github.com/acking-you/static_flow / dealloc

Method dealloc

crates/backend/src/memory_profiler.rs:787–792  ·  view source on GitHub ↗
(&self, ptr: *mut u8, layout: Layout)

Source from the content-addressed store, hash-verified

785 }
786
787 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
788 if let Some(profiler) = profiler() {
789 profiler.on_dealloc(ptr);
790 }
791 self.inner.dealloc(ptr, layout);
792 }
793
794 unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
795 let next_ptr = self.inner.realloc(ptr, layout, new_size);

Callers

nothing calls this directly

Calls 2

profilerFunction · 0.85
on_deallocMethod · 0.80

Tested by

no test coverage detected