aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/debug.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2012-02-19 00:11:44 -0500
committerRuss Cox <rsc@golang.org>2012-02-19 00:11:44 -0500
commit03f2289f7e3b419df36cdf97f4c49911c56b7b66 (patch)
tree9e7f82fc61553641135f070c2b2d09012d2a4db2 /src/pkg/runtime/debug.go
parent83976e3ac8a4b6da1782ca850ba9806b63b65c38 (diff)
downloadgo-03f2289f7e3b419df36cdf97f4c49911c56b7b66.tar.xz
runtime: API
Delete Alloc, Free, Lookup, Semacquire, Semrelease Fixes #2955. R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/5675093
Diffstat (limited to 'src/pkg/runtime/debug.go')
-rw-r--r--src/pkg/runtime/debug.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/pkg/runtime/debug.go b/src/pkg/runtime/debug.go
index 861017d5ff..6526f16a04 100644
--- a/src/pkg/runtime/debug.go
+++ b/src/pkg/runtime/debug.go
@@ -32,18 +32,6 @@ func NumCgoCall() int64
// NumGoroutine returns the number of goroutines that currently exist.
func NumGoroutine() int32
-// Alloc allocates a block of the given size.
-// FOR TESTING AND DEBUGGING ONLY.
-func Alloc(uintptr) *byte
-
-// Free frees the block starting at the given pointer.
-// FOR TESTING AND DEBUGGING ONLY.
-func Free(*byte)
-
-// Lookup returns the base and size of the block containing the given pointer.
-// FOR TESTING AND DEBUGGING ONLY.
-func Lookup(*byte) (*byte, uintptr)
-
// MemProfileRate controls the fraction of memory allocations
// that are recorded and reported in the memory profile.
// The profiler aims to sample an average of