1
0
mirror of https://github.com/golang/go synced 2024-11-25 12:47:56 -07:00

runtime, internal/syscall/unix: mark getrandom vDSO as non-escaping

Updates #66779
Updates #69577

Change-Id: I0dea5a30aab87aaa443e7e6646c1d07aa865ac1c
GitHub-Last-Rev: 1cea46deb3
GitHub-Pull-Request: golang/go#69719
Reviewed-on: https://go-review.googlesource.com/c/go/+/616696
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Commit-Queue: Ian Lance Taylor <iant@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
This commit is contained in:
Mateusz Poliwczak 2024-09-30 18:01:10 +00:00 committed by Gopher Robot
parent 1d0f5c478a
commit ba10a38ed0
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
)
//go:linkname vgetrandom runtime.vgetrandom
//go:noescape
func vgetrandom(p []byte, flags uint32) (ret int, supported bool)
var getrandomUnsupported atomic.Bool

View File

@ -11,6 +11,7 @@ import (
"unsafe"
)
//go:noescape
func vgetrandom1(buf *byte, length uintptr, flags uint32, state uintptr, stateSize uintptr) int
var vgetrandomAlloc struct {