diff options
| author | qmuntal <quimmuntal@gmail.com> | 2026-03-10 10:48:31 +0100 |
|---|---|---|
| committer | Quim Muntal <quimmuntal@gmail.com> | 2026-03-24 06:56:31 -0700 |
| commit | 9b4244e9eaab2b2b4bdf197462d336ac2e3a5284 (patch) | |
| tree | 67886bf55dbb28b6f5b72b13a8b87599425b5052 /src/net/http | |
| parent | c861da326e5d6a0350b200f758f6430de48a4ae5 (diff) | |
| download | go-9b4244e9eaab2b2b4bdf197462d336ac2e3a5284.tar.xz | |
runtime: return the error code as a return value in syscallN_trampoline
Getting errno from assembly code is cheap. There is no need to
overcomplicate syscall_rawsyscalln to get errno from the cached errno
address pointer stored in the M struct.
This also better aligns syscallN_trampoline with the cgocall convention
of returning the error code as a return value.
Cq-Include-Trybots: luci.golang.try:gotip-darwin-amd64_15,gotip-darwin-arm64_26
Change-Id: I05d5177e7c1471942e8ecafb4fb05594b4b18e2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/753540
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/net/http')
0 files changed, 0 insertions, 0 deletions
