]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.23] runtime: reduce syscall.SyscallX stack usage
authorqmuntal <quimmuntal@gmail.com>
Tue, 8 Oct 2024 16:10:17 +0000 (18:10 +0200)
committerMichael Pratt <mpratt@google.com>
Wed, 30 Oct 2024 17:06:14 +0000 (17:06 +0000)
commit1207de4f6c3739eb4339ff9eb5a794e9bdd7c4d2
treee1117593f503872e68776e92d41c4804cd08c5f6
parenta0d15cb9c8f3c35c96129857984d25446041f29e
[release-branch.go1.23] runtime: reduce syscall.SyscallX stack usage

syscall.SyscallX consumes a lot of stack space, which is a problem
because they are nosplit functions. They used to use less stack space,
but CL 563315, that landed in Go 1.23, increased the stack usage by a
lot.

This CL reduces the stack usage back to the previous level.

Fixes #69848
Updates #69813

Change-Id: Iddedd28b693c66a258da687389768055c493fc2e
Reviewed-on: https://go-review.googlesource.com/c/go/+/618497
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit fa7343aca326aad061ab877c1a4cebb96c4355c1)
Reviewed-on: https://go-review.googlesource.com/c/go/+/623516
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/syscall_windows.go
src/runtime/syscall_windows_test.go