From 0316dafda26619175f35e5e89f1920ebf37c85a3 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sat, 30 Aug 2014 00:54:40 -0400 Subject: runtime: rename SysAlloc to sysAlloc for Go Renaming the C SysAlloc will let Go define a prototype without exporting it. For use in cpuprof.goc's translation to Go. LGTM=mdempsky R=golang-codereviews, mdempsky CC=golang-codereviews, iant https://golang.org/cl/140060043 --- src/pkg/runtime/stack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime/stack.c') diff --git a/src/pkg/runtime/stack.c b/src/pkg/runtime/stack.c index 96f1946db2..e499b1f8b6 100644 --- a/src/pkg/runtime/stack.c +++ b/src/pkg/runtime/stack.c @@ -206,7 +206,7 @@ runtime·stackalloc(G *gp, uint32 n) gp->stacksize += n; if(runtime·debug.efence || StackFromSystem) { - v = runtime·SysAlloc(ROUND(n, PageSize), &mstats.stacks_sys); + v = runtime·sysAlloc(ROUND(n, PageSize), &mstats.stacks_sys); if(v == nil) runtime·throw("out of memory (stackalloc)"); return v; -- cgit v1.3