cmd/compile, runtime, reflect: pointers to go:notinheap types must be stored indirectly in interfaces [1.15 backport] #42169
Milestone
Comments
Change https://golang.org/cl/265720 mentions this issue: |
Closed by merging 255afa2 to release-branch.go1.15. |
gopherbot
pushed a commit
that referenced
this issue
Oct 27, 2020
…tinheap types indirectly pointers to go:notinheap types should be treated as scalars. That means they shouldn't be stored directly in interfaces, or directly in reflect.Value.ptr. Also be sure to use uintpr to compare such pointers in reflect.DeepEqual. Fixes #42169 Change-Id: I53735f6d434e9c3108d4940bd1bae14c61ef2a74 Reviewed-on: https://go-review.googlesource.com/c/go/+/264480 Trust: Keith Randall <khr@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> (cherry picked from commit 009d714) Reviewed-on: https://go-review.googlesource.com/c/go/+/265720 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@randall77 requested issue #42076 to be considered for backport to the next 1.15 minor release.
The text was updated successfully, but these errors were encountered: