aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-09-11 16:22:21 -0400
committerRuss Cox <rsc@golang.org>2014-09-11 16:22:21 -0400
commit15a5c35cec35c09d276b0429b719a0f2cbb29189 (patch)
treee229e7d4bab3945ab9d6e8f9e6e92339b7dff7fa /src/runtime/proc.c
parent724fa12f91959d083e6165079463f5502e5df835 (diff)
downloadgo-15a5c35cec35c09d276b0429b719a0f2cbb29189.tar.xz
runtime: move gosched to Go, to add stack frame information
LGTM=khr R=khr CC=golang-codereviews https://golang.org/cl/134520044
Diffstat (limited to 'src/runtime/proc.c')
-rw-r--r--src/runtime/proc.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/runtime/proc.c b/src/runtime/proc.c
index 03deb7abb1..004d93a973 100644
--- a/src/runtime/proc.c
+++ b/src/runtime/proc.c
@@ -1677,18 +1677,7 @@ runtime·park_m(G *gp)
schedule();
}
-// Scheduler yield.
-#pragma textflag NOSPLIT
-void
-runtime·gosched(void)
-{
- void (*fn)(G*);
-
- fn = runtime·gosched_m;
- runtime·mcall(&fn);
-}
-
-// runtime·gosched continuation on g0.
+// Gosched continuation on g0.
void
runtime·gosched_m(G *gp)
{