go/src/io
Damien Neil b02d5d325a Revert "io: allocate copy buffers from a pool"
This reverts CL 456555.

Reason for revert: This seems too likely to exercise race conditions
in code where a Write call continues to access its buffer after
returning. The HTTP/2 ResponseWriter is one such example.

Reverting this change while we think about this some more.

For #57202

Change-Id: Ic86823f81d7da410ea6b3f17fb5b3f9a979e3340
Reviewed-on: https://go-review.googlesource.com/c/go/+/467095
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-02-10 16:34:44 +00:00
..
fs io/fs: clean up test helper functions 2022-11-18 15:21:18 +00:00
ioutil all: fix spelling 2022-05-18 00:47:29 +00:00
example_test.go io: use strings.Builder 2022-09-06 15:49:32 +00:00
export_test.go io: add OffsetWriter, NewOffsetWriter 2022-08-19 17:03:55 +00:00
io.go Revert "io: allocate copy buffers from a pool" 2023-02-10 16:34:44 +00:00
io_test.go io: add OffsetWriter, NewOffsetWriter 2022-08-19 17:03:55 +00:00
multi.go all: gofmt main repo 2022-05-19 15:49:05 +00:00
multi_test.go io: use strings.Builder 2022-09-06 15:49:32 +00:00
pipe.go io: unexport internal methods 2021-08-19 09:11:02 +00:00
pipe_test.go io: add error check on pipe close functions to avoid error overwriting 2019-08-28 18:35:24 +00:00