From 548d0805f738c5f4d5bb7e72334b80c2acff059d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 1 Sep 2014 18:51:12 -0400 Subject: 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 --- src/pkg/runtime/runtime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/runtime/runtime.h') diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index bb0a87c38a..6b909599ba 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -683,6 +683,7 @@ enum extern String runtime·emptystring; extern uintptr runtime·zerobase; extern G** runtime·allg; +extern Slice runtime·allgs; // []*G extern uintptr runtime·allglen; extern G* runtime·lastg; extern M* runtime·allm; @@ -868,7 +869,6 @@ void runtime·usleep(uint32); int64 runtime·cputicks(void); int64 runtime·tickspersecond(void); void runtime·blockevent(int64, int32); -extern int64 runtime·blockprofilerate; G* runtime·netpoll(bool); void runtime·netpollinit(void); int32 runtime·netpollopen(uintptr, PollDesc*); -- cgit v1.3-5-g9baa