You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Describe the bug
I seem to have increasing memory from a setInterval in my code. I've run console.log(require("bun:jsc").heapStats()); And seen that the number of objects keeps increasing and with it the memory.
Managed to distil it down to a simple script.
To Reproduce
This is a simple setInterval, mean to represent doing "work".
What version of Bun is running?
1.1.45+196621f25
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Describe the bug
I seem to have increasing memory from a
setInterval
in my code. I've runconsole.log(require("bun:jsc").heapStats());
And seen that the number of objects keeps increasing and with it the memory.Managed to distil it down to a simple script.
To Reproduce
This is a simple setInterval, mean to represent doing "work".
Put it in a file and run it with
bun run index.ts
What is the expected behavior?
Expected behavior
I expect it not to leak.
What do you see instead?
Current Output
The current output over less than a minute:
Additional information
Additional context
Tried it in node 22, didn't leak.
The text was updated successfully, but these errors were encountered: