]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: set gp.syscallbp from entersyscallblock_handoff
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 22 Apr 2024 18:45:39 +0000 (18:45 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 22 Apr 2024 20:21:45 +0000 (20:21 +0000)
This was an oversight and is causing a few failures, most notably on
Solaris and Illumos, but also occasionally on the Linux builders.

Change-Id: I38bd28537ad01d955675f61f9b1d42b9ecdd1ef0
Reviewed-on: https://go-review.googlesource.com/c/go/+/580875
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/runtime/proc.go

index 54408dbab7c5f58c752fb69b4f6140585267a800..1468c7c599d7598bd41e6f7b29f2d205e84c2f45 100644 (file)
@@ -4428,6 +4428,7 @@ func entersyscallblock() {
        save(pc, sp, bp)
        gp.syscallsp = gp.sched.sp
        gp.syscallpc = gp.sched.pc
+       gp.syscallbp = gp.sched.bp
        if gp.syscallsp < gp.stack.lo || gp.stack.hi < gp.syscallsp {
                sp1 := sp
                sp2 := gp.sched.sp