aboutsummaryrefslogtreecommitdiff
path: root/libgo/go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-01-20 21:18:37 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-01-20 21:18:37 +0000
commit4a5b806048bb94e2adcd34ea11ae27ca4030051f (patch)
tree93038434ff16825833e5bb4fd64a08717fe4c31f /libgo/go
parenta876231c40c9e3488d91bd64aa7a12c939babe51 (diff)
downloadgcc-4a5b806048bb94e2adcd34ea11ae27ca4030051f.zip
gcc-4a5b806048bb94e2adcd34ea11ae27ca4030051f.tar.gz
gcc-4a5b806048bb94e2adcd34ea11ae27ca4030051f.tar.bz2
runtime, testing/internal/testdeps: fixes for cgo
Some fixes that permit misc/cgo/test in the master gc repository to pass using the current gccgo. Install testing/internal/testdeps.gox; it is needed by `go test`. Export runtime.lockedOSThread to enable calling via go:linkname; it is used by misc/cgo/test. Loop on EAGAIN when creating a new thread; this is what the gc code does, and misc/cgo/test tests that it works. Reviewed-on: https://go-review.googlesource.com/35479 From-SVN: r244733
Diffstat (limited to 'libgo/go')
-rw-r--r--libgo/go/runtime/proc.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/runtime/proc.go b/libgo/go/runtime/proc.go
index 958b56e..ea7f84e 100644
--- a/libgo/go/runtime/proc.go
+++ b/libgo/go/runtime/proc.go
@@ -43,6 +43,9 @@ import (
//go:linkname runqempty runtime.runqempty
//go:linkname runqput runtime.runqput
+// Function called by misc/cgo/test.
+//go:linkname lockedOSThread runtime.lockedOSThread
+
// Functions temporarily in C that have not yet been ported.
func allocm(*p, bool, *unsafe.Pointer, *uintptr) *m
func malg(bool, bool, *unsafe.Pointer, *uintptr) *g