From 684de0411878ba02c4e949d9c88a0cb8ff0d6a44 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 21 Aug 2014 20:41:09 +0400 Subject: 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 --- src/pkg/runtime/stack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/stack.c') 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; -- cgit v1.3