diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-21 20:41:09 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-08-21 20:41:09 +0400 |
| commit | 684de0411878ba02c4e949d9c88a0cb8ff0d6a44 (patch) | |
| tree | ada43b08141bf916745d5052c68b14073f770cdc /src/pkg/runtime/stack.c | |
| parent | 6b112c24db0a3c6ddd373c2001129f11f7d9e7f1 (diff) | |
| download | go-684de0411878ba02c4e949d9c88a0cb8ff0d6a44.tar.xz | |
runtime: convert common scheduler functions to Go
These are required for chans, semaphores, timers, etc.
LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews, rlh, rsc
https://golang.org/cl/123640043
Diffstat (limited to 'src/pkg/runtime/stack.c')
| -rw-r--r-- | src/pkg/runtime/stack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index f21d544f33..aeb5fb7211 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -343,7 +343,7 @@ runtime·oldstack(void) gp->sched.ret = g->m->cret; g->m->cret = 0; // drop reference gp->status = Gwaiting; - gp->waitreason = "stack unsplit"; + gp->waitreason = runtime·gostringnocopy((byte*)"stack unsplit"); if(argsize > 0) { sp -= argsize; @@ -860,7 +860,7 @@ runtime·newstack(void) g->m->morebuf.lr = (uintptr)nil; g->m->morebuf.sp = (uintptr)nil; gp->status = Gwaiting; - gp->waitreason = "stack growth"; + gp->waitreason = runtime·gostringnocopy((byte*)"stack growth"); newstackcall = framesize==1; if(newstackcall) framesize = 0; |
