]> Cypherpunks repositories - gostls13.git/commit
runtime: move exit hooks into internal/runtime/exithook
authorRuss Cox <rsc@golang.org>
Fri, 17 May 2024 16:07:15 +0000 (12:07 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 23 May 2024 02:32:19 +0000 (02:32 +0000)
commitff2070d9398aff1c44691a90761eb35ea3cd4601
tree77cb849fc27f0348ca652dd162ae3fbf9346ee33
parentfd1363240ac22583125d43d8e15f130f02a7659b
runtime: move exit hooks into internal/runtime/exithook

This removes a //go:linkname usage in the coverage implementation.

For #67401.

Change-Id: I0602172c7e372a84465160dbf46d9fa371582fff
Reviewed-on: https://go-review.googlesource.com/c/go/+/586259
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/noder/reader.go
src/cmd/internal/objabi/pkgspecial.go
src/go/build/deps_test.go
src/internal/coverage/cfile/hooks.go
src/internal/runtime/exithook/hooks.go [new file with mode: 0644]
src/runtime/exithook.go [deleted file]
src/runtime/linkname.go
src/runtime/proc.go
src/runtime/testdata/testexithooks/testexithooks.go