aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-06-22 22:08:50 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-06-22 22:08:50 +0000
commitf384e12acc5b5b06d5fcc9a40ea6cffb8c0aa4c8 (patch)
tree1f81f46bd48db07f10c7abea72ccf21948f73a05 /libgo
parent61fbdfbe1b1efc68dd02f03b0d915dc2ded0e076 (diff)
downloadgcc-f384e12acc5b5b06d5fcc9a40ea6cffb8c0aa4c8.zip
gcc-f384e12acc5b5b06d5fcc9a40ea6cffb8c0aa4c8.tar.gz
gcc-f384e12acc5b5b06d5fcc9a40ea6cffb8c0aa4c8.tar.bz2
runtime: export getm function
Use go:linkname to export the getm function. This makes it visible to runtime/testdata/testprogcgo/dropm_stub.go, which uses it as part of the TestEnsureDropM test in runtime/crash_cgo_test.go. That test is not run today, but it will be soon. Reviewed-on: https://go-review.googlesource.com/46462 From-SVN: r249576
Diffstat (limited to 'libgo')
-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 cb1e974..bdf7144 100644
--- a/libgo/go/runtime/proc.go
+++ b/libgo/go/runtime/proc.go
@@ -37,6 +37,9 @@ import (
//go:linkname globrunqput runtime.globrunqput
//go:linkname pidleget runtime.pidleget
+// Exported for test (see runtime/testdata/testprogcgo/dropm_stub.go).
+//go:linkname getm runtime.getm
+
// Function called by misc/cgo/test.
//go:linkname lockedOSThread runtime.lockedOSThread