]> Cypherpunks repositories - gostls13.git/commit
runtime: align end of systemstack_switch prologue on amd64 for consistency with gosav...
authorVasily Leonenko <vasiliy.leonenko@gmail.com>
Thu, 29 Jan 2026 18:12:49 +0000 (21:12 +0300)
committerGopher Robot <gobot@golang.org>
Fri, 30 Jan 2026 17:55:05 +0000 (09:55 -0800)
commitf14d8975a21e24aa33e0b496e822fdcb285879b9
tree6703567bdb01f5473c77e76cf5f8f804c4847bfa
parent35c5deb1d43b245c19059d1532929ee087e44a84
runtime: align end of systemstack_switch prologue on amd64 for consistency with gosave_systemstack_switch

gosave_systemstack_switch saves PC with fixed offset of 8 bytes from systemstack_switch to bypass prologue.
This commit makes this offset consistent with actual address of UNDEF instruction intended to be at that address.

Fixes #71440

Change-Id: Ibe6458c5bcb0bdaec228a2f13d6aec7ecc0e319e
Reviewed-on: https://go-review.googlesource.com/c/go/+/740360
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/runtime/asm_amd64.s