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

Method on_dealloc

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

Source from the content-addressed store, hash-verified

591 }
592
593 fn on_dealloc(&self, ptr: *mut u8) {
594 if ptr.is_null() {
595 return;
596 }
597 let Some(_guard) = ReentryGuard::enter() else {
598 return;
599 };
600 if self.remove_allocation(ptr as usize) {
601 self.sampled_dealloc_events.fetch_add(1, Ordering::Relaxed);
602 }
603 }
604
605 fn on_realloc(&self, old_ptr: *mut u8, new_ptr: *mut u8, usable_bytes: usize) {
606 if new_ptr.is_null() {

Callers 1

deallocMethod · 0.80

Calls 1

remove_allocationMethod · 0.80

Tested by

no test coverage detected