aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/dist/test.go
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2022-10-10 18:05:16 -0400
committerCherry Mui <cherryyz@google.com>2023-05-12 23:13:19 +0000
commit994eca4883b613ee845abb101ed4c3ffef80e428 (patch)
treedc3655cfee0f37875611c66b39bc53b1586cdaa1 /src/cmd/dist/test.go
parent719e2b6f0991f89702a86d46bead2b23efc82aa7 (diff)
downloadgo-994eca4883b613ee845abb101ed4c3ffef80e428.tar.gz
go-994eca4883b613ee845abb101ed4c3ffef80e428.zip
test: add escape test for reflect.Value operations
With CL 408826 reflect.Value does not always escape. We need to make sure Value operations does (or does not) escape the Value correctly. This CL adds a test. There are still a few unfortunate cases, where some Value operations escape more than necessary (comparing to a non-reflect version of the code), but hard to fix. These are mostly that a Value would escape conditionally (mostly on the type of the Value), but currently we don't have a good way to express that. Change-Id: I9fdfc7584670aa09c5a01f6b2803f2043aaddb65 Reviewed-on: https://go-review.googlesource.com/c/go/+/441938 Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/dist/test.go')
0 files changed, 0 insertions, 0 deletions