mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
d4df63c3e8
commit
0316dafda2
17 changed files with 29 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue