1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 var blackHoleBuf
= make(chan []byte, 1)
9 func blackHole() []byte {
11 case b
:= <-blackHoleBuf
:
15 return make([]byte, 8192)
18 func blackHolePut(p
[]byte) {
20 case blackHoleBuf
<- p
: