mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Replaced MemoryReportingAllocator with bun.AllocationScope throughout fetch.zig: - Changed memory_reporter field to allocation_scope in FetchTasklet and FetchOptions - Replaced memory_reporter.allocator() with allocation_scope.allocator() - Replaced memory_reporter.discard() with allocation_scope.leakSlice() - Replaced memory_reporter.report() with allocation_scope.deinit() - Updated initialization to use AllocationScope.init(bun.default_allocator) Removed MemoryReportingAllocator: - Deleted src/allocators/MemoryReportingAllocator.zig - Removed exports from src/allocators.zig and src/bun.zig - Removed isInstance check from src/safety/alloc.zig Also removed it.todo from fetch stream timeout tests in fetch.stream.test.ts as they now pass consistently with the new allocator implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>