Skip to main content

live_count

Function live_count 

Source
pub fn live_count() -> usize
Expand description

The number of objects currently alive (allocated and not yet freed by their last release) – the observable of reference counting: a design that drops every handle it took must bring this back to where it started, and one that over-releases would already have printed a stale read, so a leak and a use-after-free are both visible from outside.