Files
bun.sh/src
Claude Bot 7c54085eab test: add regression test for Response body ReadableStream Strong refs
Adds test for https://github.com/TanStack/router/issues/5289

The issue: When creating `new Response(r1.body)`, both r1 and r2 hold
Strong references to the same ReadableStream, causing duplicate protection.
This is a memory inefficiency (not a true leak, as GC eventually cleans up).

The test verifies:
1. The inefficiency exists (200 Strong refs for 100 streams)
2. It's not a leak (GC cleans up properly when Responses are released)
3. Bun.serve doesn't accumulate streams in long-running servers

This documents the current behavior. A future optimization could reduce
this to ~100 Strong refs by having Body release its Strong ref after the
stream is cached in the Response's WriteBarrier.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-30 22:57:01 +00:00
..
2025-09-27 00:45:29 -07:00
2025-09-26 03:47:26 -07:00
2025-07-21 13:26:47 -07:00
2025-09-27 00:45:29 -07:00
2025-09-27 00:45:29 -07:00
2025-09-09 20:41:10 -07:00
2025-09-27 00:45:29 -07:00
2025-07-21 13:26:47 -07:00
2025-07-29 19:35:46 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-08-27 06:39:11 -07:00
2025-09-09 20:41:10 -07:00
2025-09-09 20:41:10 -07:00
2025-09-11 23:29:53 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-09-09 20:41:10 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00
2025-07-21 13:26:47 -07:00