]> Cypherpunks repositories - gostls13.git/commit
runtime: add always-preempt maymorestack hook
authorAustin Clements <austin@google.com>
Wed, 15 Sep 2021 21:14:21 +0000 (17:14 -0400)
committerAustin Clements <austin@google.com>
Fri, 5 Nov 2021 00:52:08 +0000 (00:52 +0000)
commit35c7234601c409a1d1595e4eb9fe72e8ba4e6464
tree3346272b73bfe839753e0af3a4e77d5874a63424
parent3839b6001470f7bc73c9a80f6458f7111ae3d9cc
runtime: add always-preempt maymorestack hook

This adds a maymorestack hook that forces a preemption at every
possible cooperative preemption point. This would have helped us catch
several recent preemption-related bugs earlier, including #47302,
 #47304, and #47441.

For #48297.

Change-Id: Ib82c973589c8a7223900e1842913b8591938fb9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/359796
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/debug.go
src/runtime/stack.go