We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb29beb commit b7b1296Copy full SHA for b7b1296
src/runtime/os_windows.go
@@ -1320,13 +1320,12 @@ func preemptM(mp *m) {
1320
// Push LR. The injected call is responsible
1321
// for restoring LR. gentraceback is aware of
1322
// this extra slot. See sigctxt.pushCall in
1323
- // signal_arm.go, which is similar except we
1324
- // subtract 1 from IP here.
+ // signal_arm.go.
1325
sp := c.sp()
1326
sp -= goarch.PtrSize
1327
c.set_sp(sp)
1328
*(*uint32)(unsafe.Pointer(sp)) = uint32(c.lr())
1329
- c.set_lr(newpc - 1)
+ c.set_lr(newpc)
1330
c.set_ip(targetPC)
1331
1332
case "arm64":
0 commit comments