-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/cgo: exported cgo types not marked as go:notinheap #41761
Comments
I believe the problem is just that the notinheap annotation does not survive exporting into an object file and importing back. Should be easy to fix. |
@gopherbot please open a backport to 1.15. |
Change https://golang.org/cl/259297 mentions this issue: |
Backport issue(s) opened: #41766 (for 1.15). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/265258 mentions this issue: |
This is the gofrontend version of https://golang.org/cl/259297. This is required now because that change is in the 1.15.3 release. This requires changing the go/internal/gccgoimporter package, to skip the new annotation. This change will need to be ported to the gc and x/tools repos. For golang/go#41761 Change-Id: I81d63db7e7c41d168dfa5f1539c063c1c2413568 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/265258 Trust: Ian Lance Taylor <iant@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Than McIntosh <thanm@google.com>
Change https://golang.org/cl/265702 mentions this issue: |
The gofrontend has started emitting a notinheap annotation for types marked go:notinheap. For #41761 Change-Id: Ic8f7ffc32dbfe98ec09b3d835957f1be8e6c1208 Reviewed-on: https://go-review.googlesource.com/c/go/+/265702 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Than McIntosh <thanm@google.com>
Change https://golang.org/cl/265718 mentions this issue: |
Port https://golang.org/cl/265702 from the main Go repo. Original CL description: The gofrontend has started emitting a notinheap annotation for types marked go:notinheap. For golang/go#41761 Change-Id: Ic14ffda4b0c3eef850ad85dbf9af755283a5196b Reviewed-on: https://go-review.googlesource.com/c/tools/+/265718 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Than McIntosh <thanm@google.com> gopls-CI: kokoro <noreply+kokoro@google.com> TryBot-Result: Go Bot <gobot@golang.org>
a.go:
b.go:
When trying to build
b
, we get the error:I think
a._Ctype_struct_S
should be incomplete as well.@ianlancetaylor @neild
The text was updated successfully, but these errors were encountered: