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
importBunfrom'bun'functiontestMemoryLeak(){for(leti=0;i<1000000;i++){letsink: Bun.ArrayBufferSink=newBun.ArrayBufferSink()sink.start({asUint8Array: true,stream: true,highWaterMark: 1*1024*1024,// makes the leak more obvious})// sink.end() // uncomment this -> the leak will disappear}// variable "sink" should be GCed heresetInterval(()=>{},1000)}testMemoryLeak()
Bun will consume >1GB of memory.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.42+50eec0025
What platform is your computer?
Linux 6.1.0-10-amd64 x86_64 unknown
What steps can reproduce the bug?
Bun will consume >1GB of memory.
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: