]> Cypherpunks repositories - gostls13.git/commit
runtime: accept restartable sequence pcdata values in isAsyncSafePoint
authorCherry Mui <cherryyz@google.com>
Wed, 4 Aug 2021 23:41:19 +0000 (19:41 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 16 Aug 2021 23:32:14 +0000 (23:32 +0000)
commit8ff16c19909e5aecf51c6b993cba36ea51791f34
tree0a2fa62f17fe95a05448a980074feb65625cdde5
parentdf9c5d8f5dc96977dad865dc531d6c1e665ea1cb
runtime: accept restartable sequence pcdata values in isAsyncSafePoint

If the pcdata value indicates a restartable sequence, it is okay
to asynchronously preempt (and resume at the restart PC). Accept
it in isAsyncSafePoint.

Fixes #47530.

Change-Id: I419225717c8eee5812f3235338262da5895aad0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/340011
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/preempt.go