aboutsummaryrefslogtreecommitdiff
path: root/src/internal/syscall/execenv
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2022-06-17 13:06:16 -0400
committerCherry Mui <cherryyz@google.com>2023-05-12 21:11:51 +0000
commitbe4fe08b57b3365f3f5db2e2def296904557442d (patch)
treeeaedb1439aa3dffee0649bb1e0190f5c0d5da9b5 /src/internal/syscall/execenv
parent0ac72f8b96166c8aa3953d27f4fd3d33fb9e51cf (diff)
downloadgo-be4fe08b57b3365f3f5db2e2def296904557442d.tar.xz
reflect: do not escape Value.Type
Types are either static (for compiler-created types) or heap allocated and always reachable (for reflection-created types, held in the central map). So there is no need to escape types. With CL 408826 reflect.Value does not always escape. Some functions that escapes Value.typ would make the Value escape without this CL. Had to add a special case for the inliner to keep (*Value).Type still inlineable. Change-Id: I7c14d35fd26328347b509a06eb5bd1534d40775f Reviewed-on: https://go-review.googlesource.com/c/go/+/413474 Reviewed-by: Austin Clements <austin@google.com> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/internal/syscall/execenv')
0 files changed, 0 insertions, 0 deletions