diff options
author | Matthew Dempsky <mdempsky@google.com> | 2021-08-05 13:05:23 -0700 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2021-08-05 20:22:31 +0000 |
commit | fd45e267c2f6ce7c6a88842e3ad94d3469223e42 (patch) | |
tree | 0f721bdeb6a04dacbe298e6726c8bd09fe5af16d /src/runtime/signal_windows.go | |
parent | 6e738868a7a943d7d4fd6bb1963e7f6d78111726 (diff) | |
download | go-fd45e267c2f6ce7c6a88842e3ad94d3469223e42.tar.gz go-fd45e267c2f6ce7c6a88842e3ad94d3469223e42.zip |
runtime: warn that KeepAlive is not an unsafe.Pointer workaround
Even experienced users occasionally mistake that runtime.KeepAlive can
be used as a workaround for following the unsafe.Pointer safety rules,
but it cannot. Add an explicit warning to this effect to dissuade
users from trying to use it as such.
Fixes #47562.
Change-Id: I842e33a3e1c080933c6b1bd1b6318448adbf495c
Reviewed-on: https://go-review.googlesource.com/c/go/+/340269
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/signal_windows.go')
0 files changed, 0 insertions, 0 deletions