]> Cypherpunks repositories - gostls13.git/commit
runtime: add async preemption support on riscv64
authorQuey-Liang Kao <s101062801@m101.nthu.edu.tw>
Wed, 15 Apr 2020 13:23:52 +0000 (13:23 +0000)
committerJoel Sing <joel@sing.id.au>
Thu, 16 Apr 2020 05:29:18 +0000 (05:29 +0000)
commitb89f4c67200e6128e1dc936a9362b07900c2af3e
tree963a6f9296dbfb77df256a28bfa6176bd6a039c1
parentab3bd2c15fb5f58f9d41feaa65a42579aca91fdc
runtime: add async preemption support on riscv64

This CL adds support of call injection and async preemption on
riscv64. We also clobbered REG_TMP for the injected call. Unsafe
points related to REG_TMP access have been marked in previous commits.

Fixes #36711.

Change-Id: I1a1df5b7fc23eaafc34a6a6448fcc3c91054496e
GitHub-Last-Rev: f6110d470713be70d960fd3e984fea89bb371719
GitHub-Pull-Request: golang/go#38146
Reviewed-on: https://go-review.googlesource.com/c/go/+/226206
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/riscv/obj.go
src/runtime/mkpreempt.go
src/runtime/preempt_riscv64.s
src/runtime/signal_riscv64.go