]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/compile: pointers to notinheap types need their own shape
authorKeith Randall <khr@golang.org>
Fri, 18 Mar 2022 17:46:15 +0000 (10:46 -0700)
committerCherry Mui <cherryyz@google.com>
Mon, 4 Apr 2022 19:03:49 +0000 (19:03 +0000)
commitf4d55662d6f390ab853b121caddd91eff2692634
treed8e0c9578b35f83a1720541ff3a0a2537805726d
parent290883a55989c14f4fb4c0f7e2cf079fc0f31a3d
[release-branch.go1.18] cmd/compile: pointers to notinheap types need their own shape

They should not share a shape with regular pointers. We could coalesce
multiple pointer-to-not-in-heap types, but doesn't seem worth it - just
make them fully stenciled.

Fixes #51741

Change-Id: Ie8158177226fbc46a798e71c51897a82f15153df
Reviewed-on: https://go-review.googlesource.com/c/go/+/393895
Trust: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
(cherry picked from commit fcf6afb82dc1e9f80a6260467026adc11d5c9529)
Reviewed-on: https://go-review.googlesource.com/c/go/+/393935
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/issue51733.go [new file with mode: 0644]