Files
bun.sh/src
Claude Bot fb95022240 Use bun.http.default_allocator for HTTP buffers instead of bun.default_allocator
Fixed "allocator mismatch" errors by using the HTTP thread-local arena allocator
(bun.http.default_allocator) for HTTP-related buffers while keeping bun.default_allocator
for FetchTasklet and other non-HTTP allocations.

Changes:
- scheduled_response_buffer.allocator = bun.http.default_allocator (lines 1044, 489, 884, 936, 1369)
- response_buffer.allocator = bun.http.default_allocator (line 1051)
- AsyncHTTP.init uses bun.http.default_allocator (line 1097)
- clearData and deinit still use bun.default_allocator (for FetchTasklet/AsyncHTTP struct cleanup)

This matches the code review feedback and fixes the test failures.

All tests now pass:
 test/js/bun/http/fetch-file-upload.test.ts (6/6 tests)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 14:22:35 +00:00
..
2025-10-16 21:52:22 -04:00
2025-10-04 02:17:55 -07:00
2025-09-09 20:41:10 -07:00
2025-10-23 17:52:13 -07:00
2025-09-11 23:29:53 -07:00
2025-10-25 00:05:28 -07:00
2025-09-09 20:41:10 -07:00