summaryrefslogtreecommitdiff
path: root/libgo/runtime/go-rec-small.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/go-rec-small.c')
-rw-r--r--libgo/runtime/go-rec-small.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libgo/runtime/go-rec-small.c b/libgo/runtime/go-rec-small.c
index 765e8d310de..c4dc8b6e892 100644
--- a/libgo/runtime/go-rec-small.c
+++ b/libgo/runtime/go-rec-small.c
@@ -123,12 +123,6 @@ __go_receive_acquire (struct __go_channel *channel, _Bool for_select)
? channel->next_store == 0
: channel->next_fetch == channel->next_store))
{
- if (channel->saw_close)
- {
- ++channel->closed_op_count;
- if (channel->closed_op_count >= MAX_CLOSED_OPERATIONS)
- __go_panic_msg ("too many operations on closed channel");
- }
channel->saw_close = 1;
channel->selected_for_receive = 0;
__go_unlock_and_notify_selects (channel);