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
This commit is contained in:
Russ Cox 2014-08-30 00:54:40 -04:00
parent d4df63c3e8
commit 0316dafda2
17 changed files with 29 additions and 29 deletions

View file

@ -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;