]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: silently allow pinning of non-Go pointers in runtime.Pinner.Pin
authordoujiang24 <doujiang24@gmail.com>
Wed, 13 Sep 2023 09:44:19 +0000 (09:44 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 13 Sep 2023 18:36:12 +0000 (18:36 +0000)
commitbfa8a8586f6ba62265c31d4edc2027f5b15f7ed3
tree0495995559cab01360ab16786051b75f1ac150a3
parentb45b00162b688deff23a64d442f905261c49bdc4
runtime: silently allow pinning of non-Go pointers in runtime.Pinner.Pin

People may not know the details of a pointer, this makes the
runtime.Pinner.Pin API easier to use.

Fixes #62356

Change-Id: I071df44e01320648a6df5e2a1e65afd6ea52e274
GitHub-Last-Rev: 560a581b63c6e7fe6c8829437e7ab3acd3b31514
GitHub-Pull-Request: golang/go#62549
Reviewed-on: https://go-review.googlesource.com/c/go/+/527156
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/runtime/pinner.go
src/runtime/pinner_test.go