diff options
| author | Russ Cox <rsc@golang.org> | 2012-02-19 00:11:44 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-02-19 00:11:44 -0500 |
| commit | 03f2289f7e3b419df36cdf97f4c49911c56b7b66 (patch) | |
| tree | 9e7f82fc61553641135f070c2b2d09012d2a4db2 /src/pkg/runtime/malloc.goc | |
| parent | 83976e3ac8a4b6da1782ca850ba9806b63b65c38 (diff) | |
| download | go-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/malloc.goc')
| -rw-r--r-- | src/pkg/runtime/malloc.goc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/pkg/runtime/malloc.goc b/src/pkg/runtime/malloc.goc index 4d5c80c727..c9f1d67c22 100644 --- a/src/pkg/runtime/malloc.goc +++ b/src/pkg/runtime/malloc.goc @@ -446,18 +446,6 @@ runtime·stackfree(void *v, uintptr n) runtime·free(v); } -func Alloc(n uintptr) (p *byte) { - p = runtime·malloc(n); -} - -func Free(p *byte) { - runtime·free(p); -} - -func Lookup(p *byte) (base *byte, size uintptr) { - runtime·mlookup(p, &base, &size, nil); -} - func GC() { runtime·gc(1); } |
