Hacker News new | ask | show | jobs
by inigyou 104 days ago
If this is needed in tests it needs to be known how it works, it needs to work consistently, and it needs to be documented how it works. It can't be an ad-hoc deep investigation and random fix each time. The comment should then be just // ensure foo is no longer a GC root, see gc_roots.md
1 comments

It needs a comment for sure. I always write a little helper utility to manage that when I need it.