]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] syscall: mark SyscallN as noescape
authorqmuntal <quimmuntal@gmail.com>
Tue, 5 Nov 2024 15:01:45 +0000 (16:01 +0100)
committerGopher Robot <gobot@golang.org>
Wed, 20 Nov 2024 18:07:04 +0000 (18:07 +0000)
commit847cb6f9ca43da48cb10e98808a74a40b41242fa
treeaf11c5b2aad479825402df9c21d2ed38c30a3ada
parent777f43ab27bde4c662cd0a663f807f74f3fbab0f
[release-branch.go1.23] syscall: mark SyscallN as noescape

syscall.SyscallN is implemented by runtime.syscall_syscalln, which makes
sure that the variadic argument doesn't escape.

There is no need to worry about the lifetime of the elements of the
variadic argument, as the compiler will keep them live until the
function returns.

For #70197
Fixes #70202

Change-Id: I12991f0be12062eea68f2b103fa0a794c1b527eb
Reviewed-on: https://go-review.googlesource.com/c/go/+/625297
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit 7fff741016c8157e107cce8013ee3ca621725384)
Reviewed-on: https://go-review.googlesource.com/c/go/+/630196
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Quim Muntal <quimmuntal@gmail.com>
src/syscall/dll_windows.go
src/syscall/syscall_windows_test.go