summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-08-06 18:04:43 -0700
committerIan Lance Taylor <iant@golang.org>2021-08-12 16:33:10 -0700
commit1196b60f8fc5a169e01ac859712013a4d3d8de96 (patch)
tree431a9cea9e59f3dda3f12a613802b04f094f5712 /libgo
parentd0befed793b94f3f407be44e6f69f81a02f5f073 (diff)
downloadgcc-1196b60f8fc5a169e01ac859712013a4d3d8de96.tar.gz
compiler: store pointers to go:notinheap types indirectly
This is the gofrontend version of https://golang.org/cl/264480. For golang/go#42076 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/340609
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/runtime/netpoll.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/runtime/netpoll.go b/libgo/go/runtime/netpoll.go
index da00b57c276..879112a728d 100644
--- a/libgo/go/runtime/netpoll.go
+++ b/libgo/go/runtime/netpoll.go
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+//go:build aix || darwin || dragonfly || freebsd || hurd || (js && wasm) || linux || netbsd || openbsd || solaris || windows
// +build aix darwin dragonfly freebsd hurd js,wasm linux netbsd openbsd solaris windows
package runtime
@@ -567,8 +568,7 @@ func (c *pollCache) alloc() *pollDesc {
func (pd *pollDesc) makeArg() (i interface{}) {
x := (*eface)(unsafe.Pointer(&i))
x._type = pdType
- // For gccgo, we still use pd.self here, not &pd.self.
- x.data = unsafe.Pointer(pd.self)
+ x.data = unsafe.Pointer(&pd.self)
return
}