]> Cypherpunks repositories - gostls13.git/commit
internal/reflectlite: allow Value be stack allocated
authorCherry Mui <cherryyz@google.com>
Thu, 16 Nov 2023 06:00:22 +0000 (01:00 -0500)
committerCherry Mui <cherryyz@google.com>
Thu, 16 Nov 2023 19:26:08 +0000 (19:26 +0000)
commitd573a8a8e86157d1d9ea43e6bcb03ce5b9baa9fb
treece8eda3d0d7c593d129b68545b76aff207966a46
parent0434ca9ce87eb06c6b8ba42fa09eaee0dda8d381
internal/reflectlite: allow Value be stack allocated

Port CL 408826 and CL 413474 from reflect to internal/reflectlite.
It is a bit simpler as reflectlite has fewer methods.

Change-Id: I479199c8984afd35f42c3d8e764340184c17948f
Reviewed-on: https://go-review.googlesource.com/c/go/+/542976
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/internal/reflectlite/all_test.go
src/internal/reflectlite/export_test.go
src/internal/reflectlite/type.go
src/internal/reflectlite/value.go