]> Cypherpunks repositories - gostls13.git/commit
reflect: remove go121noForceValueEscape
authorCherry Mui <cherryyz@google.com>
Thu, 16 Nov 2023 02:35:37 +0000 (21:35 -0500)
committerCherry Mui <cherryyz@google.com>
Thu, 16 Nov 2023 19:25:24 +0000 (19:25 +0000)
commit23ca33009571a55eda926b7a41f5ceb04277bbd9
tree5dfc17956bbd2e6b75d0b2b3ea55830039fb4f4c
parentc5e812234c099d6c2749783541830d6272e1af12
reflect: remove go121noForceValueEscape

Before Go 1.21, ValueOf always escapes and a Value's content is
always heap allocated. In Go 1.21, we made it no longer always
escape, guarded by go121noForceValueEscape. This behavior has
been released for some time and there is no issue so far. We can
remove the guard now.

Change-Id: I81f5366412390f6c63b642f4c7c016da534da76a
Reviewed-on: https://go-review.googlesource.com/c/go/+/542795
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/reflect/value.go