]> Cypherpunks repositories - gostls13.git/commit
runtime: move getclosureptr to internal/runtime/sys
authorMichael Pratt <mpratt@google.com>
Mon, 16 Sep 2024 20:07:25 +0000 (16:07 -0400)
committerMichael Pratt <mpratt@google.com>
Tue, 17 Sep 2024 17:01:26 +0000 (17:01 +0000)
commitd1c3f255fda8b9bf86990b55353ca14fbfe5b257
treeb652f4a29fb9af7e57c1d26b278be82c71a00e7d
parent4f881115d4067bda8a236aabcae8c41cdd13b4d0
runtime: move getclosureptr to internal/runtime/sys

Moving these intrinsics to a base package enables other internal/runtime
packages to use them.

There is no immediate need for getclosureptr outside of runtime, but it
is moved for consistency with the other intrinsics.

For #54766.

Change-Id: Ia68b16a938c8cb84cb222469db28e3a83861be5d
Reviewed-on: https://go-review.googlesource.com/c/go/+/613262
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/devirtualize/pgo.go
src/cmd/compile/internal/ssagen/intrinsics.go
src/cmd/compile/internal/ssagen/intrinsics_test.go
src/internal/runtime/sys/intrinsics.go
src/runtime/alg.go
src/runtime/stubs.go