aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/heapdump.c
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-08-21 20:41:09 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-08-21 20:41:09 +0400
commit684de0411878ba02c4e949d9c88a0cb8ff0d6a44 (patch)
treeada43b08141bf916745d5052c68b14073f770cdc /src/pkg/runtime/heapdump.c
parent6b112c24db0a3c6ddd373c2001129f11f7d9e7f1 (diff)
downloadgo-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/heapdump.c')
-rw-r--r--src/pkg/runtime/heapdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/heapdump.c b/src/pkg/runtime/heapdump.c
index a2d12ad603..3fc54aedbc 100644
--- a/src/pkg/runtime/heapdump.c
+++ b/src/pkg/runtime/heapdump.c
@@ -408,7 +408,7 @@ dumpgoroutine(G *gp)
dumpbool(gp->issystem);
dumpbool(gp->isbackground);
dumpint(gp->waitsince);
- dumpcstr(gp->waitreason);
+ dumpstr(gp->waitreason);
dumpint((uintptr)gp->sched.ctxt);
dumpint((uintptr)gp->m);
dumpint((uintptr)gp->defer);
@@ -760,7 +760,7 @@ runtime∕debug·WriteHeapDump(uintptr fd)
// Call dump routine on M stack.
g->status = Gwaiting;
- g->waitreason = "dumping heap";
+ g->waitreason = runtime·gostringnocopy((byte*)"dumping heap");
runtime·mcall(mdump);
// Reset dump file.