]> Cypherpunks repositories - gostls13.git/commit
runtime: support for injecting calls at signals on x86
authorAustin Clements <austin@google.com>
Mon, 14 Oct 2019 23:28:58 +0000 (19:28 -0400)
committerAustin Clements <austin@google.com>
Sat, 2 Nov 2019 21:51:12 +0000 (21:51 +0000)
commit2d031dc559a720ec2c1939848a2e5de2782acd5a
treea1903b387c2a1a465895e512676cb9586a598867
parent61fa79885ba83b2552e7026cb300ae426a3c0b83
runtime: support for injecting calls at signals on x86

This adds a sigctxt.pushCall method that pushes a call at the signaled
site. We'll use this to inject asynchronous preemptions and in some
places we use it to clean up preparePanic.

For the moment this only works on 386 and amd64. We stub it out on
other platforms and will avoid calling the stubbed version.

For #10958, #24543.

Change-Id: I49e0e853f935d32dd67a70c6cafbae44ee68af8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/201758
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/signal_386.go
src/runtime/signal_amd64.go
src/runtime/signal_arm.go
src/runtime/signal_arm64.go
src/runtime/signal_linux_s390x.go
src/runtime/signal_mips64x.go
src/runtime/signal_mipsx.go
src/runtime/signal_ppc64x.go