diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-11 16:22:21 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-11 16:22:21 -0400 |
| commit | 15a5c35cec35c09d276b0429b719a0f2cbb29189 (patch) | |
| tree | e229e7d4bab3945ab9d6e8f9e6e92339b7dff7fa /src/runtime/proc.c | |
| parent | 724fa12f91959d083e6165079463f5502e5df835 (diff) | |
| download | go-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.c | 13 |
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) { |
