]> Cypherpunks repositories - gostls13.git/commit
internal/poll: avoid tiny allocator for splicePipe
authorIan Lance Taylor <iant@golang.org>
Fri, 22 Oct 2021 21:19:34 +0000 (14:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 25 Oct 2021 21:03:33 +0000 (21:03 +0000)
commit60c3069dd82eee30c00f2a8d829ba74b11bcf07e
tree67f5d9ca3acca3408d1072a6845fed0067ac6d6e
parente35b5b25d976efb7c00b871cac452b84193e6179
internal/poll: avoid tiny allocator for splicePipe

We want to set a finalizer on splicePipe, so make it large enough to
not use the tiny allocator. Otherwise the finalizer will not run until
the rest of the tiny allocation can be freed. This only matters on
32-bit systems.

Fixes #48968

Change-Id: I8eb3c9f48fdccab7dc79c5b918d4257b6151ee91
Reviewed-on: https://go-review.googlesource.com/c/go/+/358114
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/internal/poll/splice_linux.go