Commit 957ed90d authored by Keith Randall's avatar Keith Randall Committed by Russ Cox
Browse files

[release-branch.go1.4] reflect: add kindNoPointers if a function layout has no pointers.

malloc checks kindNoPointers and if it is not set and the object
is one pointer in size, it assumes it contains a pointer.  So we
must set kindNoPointers correctly; it isn't just a hint.

Fixes #9425

Change-Id: Ia43da23cc3298d6e3d6dbdf66d32e9678f0aedcf
Reviewed-on: https://go-review.googlesource.com/2055


Reviewed-by: default avatarRuss Cox <rsc@golang.org>
(cherry picked from commit d11f4111)
Reviewed-on: https://go-review.googlesource.com/2800


Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
parent cc7bbb0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment