From 4bfc521c9eeadaac02870c419fad9ba67da0ff3c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 23 Mar 2011 21:13:57 +0000 Subject: Send on a closed channel panics. Calling close on a closed channel panics. Don't limit number of receives on a closed channel. From-SVN: r171364 --- libgo/runtime/go-send-big.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libgo/runtime/go-send-big.c') diff --git a/libgo/runtime/go-send-big.c b/libgo/runtime/go-send-big.c index f58ffb6..c273263 100644 --- a/libgo/runtime/go-send-big.c +++ b/libgo/runtime/go-send-big.c @@ -21,8 +21,7 @@ __go_send_big (struct __go_channel* channel, const void *val, _Bool for_select) alloc_size = ((channel->element_size + sizeof (uint64_t) - 1) / sizeof (uint64_t)); - if (!__go_send_acquire (channel, for_select)) - return; + __go_send_acquire (channel, for_select); offset = channel->next_store * alloc_size; __builtin_memcpy (&channel->data[offset], val, channel->element_size); -- cgit v1.1