diff options
| author | Damien Neil <dneil@google.com> | 2025-05-01 13:24:50 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-05-07 13:14:34 -0700 |
| commit | ef7724c4324f6bac40463a12e4fea43ff0b4a8e8 (patch) | |
| tree | 5a89783ddf1393124bee793515135012352f1e81 /src/runtime/select.go | |
| parent | d6c8bedc7b3d2de7714dca75bd05912b371538f1 (diff) | |
| download | go-ef7724c4324f6bac40463a12e4fea43ff0b4a8e8.tar.xz | |
runtime: use "bubble" terminology for synctest
We've settled on calling the group of goroutines started by
synctest.Run a "bubble". At the time the runtime implementation
was written, I was still calling this a "group". Update the code
to match the current terminology.
Change-Id: I31b757f31d804b5d5f9564c182627030a9532f4a
Reviewed-on: https://go-review.googlesource.com/c/go/+/670135
Reviewed-by: Michael Pratt <mpratt@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/runtime/select.go')
| -rw-r--r-- | src/runtime/select.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/select.go b/src/runtime/select.go index 0b1d144951..0f3190ade8 100644 --- a/src/runtime/select.go +++ b/src/runtime/select.go @@ -177,7 +177,7 @@ func selectgo(cas0 *scase, order0 *uint16, pc0 *uintptr, nsends, nrecvs int, blo } if cas.c.synctest { - if getg().syncGroup == nil { + if getg().bubble == nil { panic(plainError("select on synctest channel from outside bubble")) } } else { @@ -197,7 +197,7 @@ func selectgo(cas0 *scase, order0 *uint16, pc0 *uintptr, nsends, nrecvs int, blo lockorder = lockorder[:norder] waitReason := waitReasonSelect - if gp.syncGroup != nil && allSynctest { + if gp.bubble != nil && allSynctest { // Every channel selected on is in a synctest bubble, // so this goroutine will count as idle while selecting. waitReason = waitReasonSynctestSelect |
