aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2023-02-13 15:55:21 -0500
committerAustin Clements <austin@google.com>2023-03-10 17:59:31 +0000
commitda384766a053d851d912f04afaa1113b627a0822 (patch)
tree1b3187e09a6f9d0340da5d5166e3817117b1ad6b /src/errors
parentf758d648b0aea95b10713864f20c957412ff9193 (diff)
downloadgo-da384766a053d851d912f04afaa1113b627a0822.tar.xz
runtime: make unsafe.Slice usable from nowritebarrierrec
Many compiler-generated panics are dynamically changed to a "throw" when they happen in the runtime. One effect of this is that they are allowed in nowritebarrierrec contexts. Currently, the unsafe.Slice panics don't have this treatment. We're about to expose more code that uses unsafe.Slice to the write barrier checker (it's actually already there and it just can't see through an indirect call), so give these panics the dynamic check. Very indirectly updates #54466. Change-Id: I65cb96fa17eb751041e4fa25a1c1bd03246c82ba Reviewed-on: https://go-review.googlesource.com/c/go/+/468296 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/errors')
0 files changed, 0 insertions, 0 deletions