Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile, runtime, reflect: pointers to go:notinheap types must be stored indirectly in interfaces [1.15 backport] #42169

gopherbot opened this issue Oct 23, 2020 · 2 comments


Copy link

@gopherbot gopherbot commented Oct 23, 2020

@randall77 requested issue #42076 to be considered for backport to the next 1.15 minor release.

@gopherbot Please open a backport issue for 1.15.

Copy link

@gopherbot gopherbot commented Oct 27, 2020

Change mentions this issue: cmd/compile, runtime: store pointers to go:notinheap types indirectly

Copy link

@gopherbot gopherbot commented Oct 27, 2020

Closed by merging 255afa2 to release-branch.go1.15.

@gopherbot gopherbot closed this Oct 27, 2020
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
Trust: Keith Randall <>
Reviewed-by: Ian Lance Taylor <>
(cherry picked from commit 009d714)
Run-TryBot: Keith Randall <>
TryBot-Result: Go Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.