diff options
| author | Austin Clements <austin@google.com> | 2023-02-13 15:55:21 -0500 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2023-03-10 17:59:31 +0000 |
| commit | da384766a053d851d912f04afaa1113b627a0822 (patch) | |
| tree | 1b3187e09a6f9d0340da5d5166e3817117b1ad6b /src/errors | |
| parent | f758d648b0aea95b10713864f20c957412ff9193 (diff) | |
| download | go-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
