]> Cypherpunks repositories - gostls13.git/commit
runtime: allow write barriers in startpanic_m
authorAustin Clements <austin@google.com>
Sun, 22 Oct 2017 22:10:08 +0000 (18:10 -0400)
committerAustin Clements <austin@google.com>
Sun, 29 Oct 2017 17:56:14 +0000 (17:56 +0000)
commit070cc8eb02248698480957dd7cd6ada07de309de
tree4a49b5cf004b1c82fa29ce29a3d89ff053a7aad2
parent249b5cc9452534d677499c7017b1081533ba56fe
runtime: allow write barriers in startpanic_m

We're about to start tracking nowritebarrierrec through systemstack
calls, which will reveal write barriers in startpanic_m prohibited by
various callers.

We actually can allow write barriers here because the write barrier is
a no-op when we're panicking. Let the compiler know.

Updates #22384.
For #22460.

Change-Id: Ifb3a38d3dd9a4125c278c3680f8648f987a5b0b8
Reviewed-on: https://go-review.googlesource.com/72770
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mbarrier.go
src/runtime/panic.go