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/heapdump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime/heapdump.c') diff --git a/src/pkg/runtime/heapdump.c b/src/pkg/runtime/heapdump.c index fe67e15f35..29a9ae6476 100644 --- a/src/pkg/runtime/heapdump.c +++ b/src/pkg/runtime/heapdump.c @@ -825,7 +825,7 @@ makeheapobjbv(byte *p, uintptr size) if(tmpbuf != nil) runtime·SysFree(tmpbuf, tmpbufsize, &mstats.other_sys); tmpbufsize = nptr*BitsPerPointer/8+1; - tmpbuf = runtime·SysAlloc(tmpbufsize, &mstats.other_sys); + tmpbuf = runtime·sysAlloc(tmpbufsize, &mstats.other_sys); if(tmpbuf == nil) runtime·throw("heapdump: out of memory"); } -- cgit v1.3-5-g45d5