]> Cypherpunks repositories - gostls13.git/commit
runtime: add go:yeswritebarrierrec to panic functions
authorDavid Chase <drchase@google.com>
Fri, 13 May 2022 16:09:21 +0000 (12:09 -0400)
committerDavid Chase <drchase@google.com>
Fri, 13 May 2022 19:29:44 +0000 (19:29 +0000)
commit81d567146eb94678d401e282f99885010411df39
tree1acf4c961c1dda8dd2190c89dcf9b595b24953a6
parent9a68dcd7decdebf6a17b3846b886f7c241a3bf5d
runtime: add go:yeswritebarrierrec to panic functions

Panic avoids any write barriers in the runtime by checking first
and throwing if called inappropriately, so it is "okay".  Adding
this annotation repairs recursive write barrier checking, which
becomes more thorough when the local package naming convention
is changed from "" to the actual package name.

This CL is a prerequisite for a pending code cleanup,
https://go-review.googlesource.com/c/go/+/393715

Updates #51734.

Change-Id: If831a3598c6c8cd37a8e9ba269f822cd81464a13
Reviewed-on: https://go-review.googlesource.com/c/go/+/405900
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: David Chase <drchase@google.com>
src/runtime/panic.go