]> Cypherpunks repositories - gostls13.git/commit
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)
committerKeith Randall <khr@golang.org>
Fri, 18 Mar 2022 19:22:30 +0000 (19:22 +0000)
commitfcf6afb82dc1e9f80a6260467026adc11d5c9529
tree4e94f21a5636b562141b992975c96c90ea77b16a
parent7e5804cb7014bf3154542a3d2afc68c3a61b7452
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 #51733

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>
src/cmd/compile/internal/typecheck/subr.go
test/typeparam/issue51733.go [new file with mode: 0644]