aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/select.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/select.go')
-rw-r--r--src/runtime/select.go4
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