DeadCode#
Report scalars “frozen” into inactive code references — a deep-internals probe for leaks inside closed-over CVs.
DeadCode() walks Perl’s SV arena looking for PVCV bodies
whose pads still hold live scalars even though the sub is no
longer reachable, and returns the findings as an array reference.
Most scripts never need this; it is a tool for people chasing
exotic leaks that Dump and SvREFCNT cannot locate.
Returns an array reference. An empty result means “nothing matched the arena-walk heuristic” — which is the expected outcome under pperl, whose allocator layout differs from the arena the upstream walk was written against.