]> Cypherpunks repositories - gostls13.git/commit
runtime: disallow closing bubbled chans from outside bubble
authorDamien Neil <dneil@google.com>
Fri, 9 May 2025 23:18:49 +0000 (16:18 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 20 May 2025 19:36:34 +0000 (12:36 -0700)
commitd596bc0e819aec2cf65a61d8b92f6bec8e0a7124
tree14c158aaf6d5181ff698ff7d5f631961f129cfc4
parentb7382cc1f012016c91036c49db0ea6db444b47d8
runtime: disallow closing bubbled chans from outside bubble

A chan created within a synctest bubble may not be
operated on from outside the bubble.
We panicked on send and receive, but not close.
Panic on close as well.

For #67434

Change-Id: I98d39e0cf7baa1a679aca1fb325453d69c535308
Reviewed-on: https://go-review.googlesource.com/c/go/+/671960
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
src/internal/synctest/synctest_test.go
src/runtime/chan.go