]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: compile cap(ch) as call to runtime.chancap
authorRuss Cox <rsc@golang.org>
Thu, 29 Feb 2024 19:28:09 +0000 (14:28 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 8 Mar 2024 22:35:22 +0000 (22:35 +0000)
commit61d6817c832e318a8a69c4b48e6b823010b9da96
treea5c0ccfd2d1f2e6c328c1877037f4e093c7e8cad
parent24fa7544b08f998ed3dd857342dc7787924276a1
cmd/compile: compile cap(ch) as call to runtime.chancap

An upcoming CL will give this call more to do.
For now, separate out the compiler change that
stops inlining the computation.

For #37196.

Change-Id: I965426d446964b9b4958e4613246002a7660e7eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/568375
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/typecheck/_builtin/runtime.go
src/cmd/compile/internal/typecheck/builtin.go
src/cmd/compile/internal/walk/builtin.go
src/runtime/chan.go