]> Cypherpunks repositories - gostls13.git/commit
io: fix test when MultiReader is inlined with -l=3
authorDavid Lazar <lazard@golang.org>
Fri, 27 Jan 2017 20:24:48 +0000 (15:24 -0500)
committerDavid Lazar <lazard@golang.org>
Thu, 2 Feb 2017 18:56:20 +0000 (18:56 +0000)
commitf395e878887df1a28966353f32f5ee70973c8f3f
treeae47fb72ef337922221961ab1f8404acd186cd09
parent16e430e1ef8b9c9259bb4f07a0787de4310b3041
io: fix test when MultiReader is inlined with -l=3

This ensures there isn't a live reference to buf1 on our stack
when MultiReader is inlined.

Fixes #18819.

Change-Id: I96a8cdc1ffad8f8a10c0ddcbf0299005f3176b61
Reviewed-on: https://go-review.googlesource.com/35931
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/io/multi_test.go