From 10e6a30b78d5945a8a0bdb2aa732d653eb08c1ee Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Mon, 30 Sep 2024 18:49:51 +0200 Subject: [PATCH] unix: mark the linknamed vgetrandom as noescape Also see discussion in CL 616735 --- unix/vgetrandom_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/vgetrandom_linux.go b/unix/vgetrandom_linux.go index 47cce9bb..07ac8e09 100644 --- a/unix/vgetrandom_linux.go +++ b/unix/vgetrandom_linux.go @@ -9,4 +9,5 @@ package unix import _ "unsafe" //go:linkname vgetrandom runtime.vgetrandom +//go:noescape func vgetrandom(p []byte, flags uint32) (ret int, supported bool)