diff options
| author | Russ Cox <rsc@golang.org> | 2014-09-01 18:51:12 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-09-01 18:51:12 -0400 |
| commit | 548d0805f738c5f4d5bb7e72334b80c2acff059d (patch) | |
| tree | 46e6202941a339e08fe7d57553fa9a0957add949 /src/pkg/runtime/malloc.h | |
| parent | 60be96217d4192312295c89731ab1239a73235e7 (diff) | |
| download | go-548d0805f738c5f4d5bb7e72334b80c2acff059d.tar.xz | |
runtime: convert mprof.goc to mprof.go
The exported Go definitions appearing in mprof.go are
copied verbatim from debug.go.
The unexported Go funcs and types are new.
The C Bucket type used a union and was not a line-for-line translation.
LGTM=remyoudompheng
R=golang-codereviews, remyoudompheng
CC=dvyukov, golang-codereviews, iant, khr, r
https://golang.org/cl/137040043
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 6994557459..f328feb172 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -540,10 +540,10 @@ enum FlagNoZero = 1<<1, // don't zero memory }; -void runtime·MProf_Malloc(void*, uintptr); -void runtime·MProf_Free(Bucket*, uintptr, bool); -void runtime·MProf_GC(void); -void runtime·iterate_memprof(void (*callback)(Bucket*, uintptr, uintptr*, uintptr, uintptr, uintptr)); +void runtime·mProf_Malloc(void*, uintptr); +void runtime·mProf_Free(Bucket*, uintptr, bool); +void runtime·mProf_GC(void); +void runtime·iterate_memprof(void (**callback)(Bucket*, uintptr, uintptr*, uintptr, uintptr, uintptr)); int32 runtime·gcprocs(void); void runtime·helpgc(int32 nproc); void runtime·gchelper(void); |
