Re:Tracking (C++) Shared Pointer Leaks
by wakawaka28 on Friday October 04, 2024 @12:09AM
(#41737743)
I'm talking about having to change existing code to use the library, to enable the analysis. I don't want to do that. I don't care much how they make it happen... Ideally, it could be done with `LD_PRELOAD` tricks but that won't work because of the templated nature of smart pointers.
[ Parent
| on HN ]
Re:Tracking (C++) Shared Pointer Leaks
by PaulDavisThe1st on Saturday October 05, 2024 @05:56PM
(#41753242)
when we hacked boost::*_ptr to do this, we used an environment variable to turn on the types we wanted traced. there would have no point in tracing every type that was managed with smart pointers, so there has to be at least 1 line of code modification just to identify what you wanted traced.