aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/stubs.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-11-18 17:48:29 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-11-18 17:48:29 +0000
commit092dd2bc335d124bdcf6aa1a27ea3196e90cc1ba (patch)
treefb1782f935ac669d4b7a6987b556622df8aef1a6 /libgo/go/runtime/stubs.go
parent70e73d3c4277fa602999b3e3c104a06024932c70 (diff)
downloadgcc-092dd2bc335d124bdcf6aa1a27ea3196e90cc1ba.zip
gcc-092dd2bc335d124bdcf6aa1a27ea3196e90cc1ba.tar.gz
gcc-092dd2bc335d124bdcf6aa1a27ea3196e90cc1ba.tar.bz2
runtime: move schedt type and sched var from C to Go
This doesn't change any actual code, it just starts using the Go definition of the schedt type and the sched variable rather than the C definitions. The schedt type is tweaked slightly for gccgo. We aren't going to release goroutine stacks, so we don't need separate gfreeStack and gfreeNostack lists. We only have one size of defer function, so we don't need a list of 5 different pools. Reviewed-on: https://go-review.googlesource.com/33364 From-SVN: r242600
Diffstat (limited to 'libgo/go/runtime/stubs.go')
-rw-r--r--libgo/go/runtime/stubs.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgo/go/runtime/stubs.go b/libgo/go/runtime/stubs.go
index 8d90cd6..b01bc7c 100644
--- a/libgo/go/runtime/stubs.go
+++ b/libgo/go/runtime/stubs.go
@@ -520,3 +520,9 @@ func dumpregs(*_siginfo_t, unsafe.Pointer)
// Temporary for gccgo until we port panic.go.
func startpanic()
+
+// Temporary for gccgo until we port proc.go.
+//go:linkname getsched runtime.getsched
+func getsched() *schedt {
+ return &sched
+}