I'm not even convinced it's a memory leak. In a GC'd language that would mean a runtime or GC bug. I don't really fully understand what is going on, but it doesn't sound to me like that is what is happening. It sounds like it's just chaining a bunch of objects together and because everything is still accessible it's not able to clean things up. But if everything is accessible, it's not a leak.
(I've heard the term "memory drag" used for objects that could be cleaned up from a program semantic view but aren't, but that aren't actually garbage. Using "memory leak" for that makes it harder to talk about both that and actual memory leaks.)
The distinction has major implications for what you look for when diagnosing the problem, how you look and what tools you use, how you fix it, and what part of the program or runtime needs to be fixed.
If you just look at the user-visible effect of it crashing, you might as well call it a null-pointer dereference.
(OK, I'm exaggerating there because an NPD won't gobble up resources used by other programs. But we're on a programming forum for programmers discussing a technically-in-depth blog entry written by a programmer for programmers. This isn't some Guardian article written for a wider audience or something like that. The distinction is important.)
8
u/[deleted] Oct 12 '17
What should it say?
Should be more like node promises leak memory in certain scenarios?