diff options
author | Russ Cox <rsc@golang.org> | 2010-04-09 15:30:40 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-04-09 15:30:40 -0700 |
commit | 79da15518c65196d0a6eb86d682c74161f6e2ef4 (patch) | |
tree | 45108c80c561d126a26fc4ddcd55e275f4e8d8d4 /src/pkg/runtime/iface.c | |
parent | d13ec30e1e389fcd90e9d3be49765f49bf791f93 (diff) | |
download | golang-79da15518c65196d0a6eb86d682c74161f6e2ef4.tar.gz |
runtime: delete malx, skip_depth argument to malloc
remove internal functions from traces in gopprof instead.
R=r
CC=golang-dev
http://codereview.appspot.com/855046
Diffstat (limited to 'src/pkg/runtime/iface.c')
-rw-r--r-- | src/pkg/runtime/iface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/runtime/iface.c b/src/pkg/runtime/iface.c index 28e3edeee..9c2c6b1b5 100644 --- a/src/pkg/runtime/iface.c +++ b/src/pkg/runtime/iface.c @@ -157,7 +157,7 @@ copyin(Type *t, void *src, void **dst) if(wid <= sizeof(*dst)) algarray[alg].copy(wid, dst, src); else { - p = malx(wid, 1); + p = mal(wid); algarray[alg].copy(wid, p, src); *dst = p; } @@ -662,7 +662,7 @@ unsafe·New(Eface typ, void *ret) t = (Type*)((Eface*)typ.data-1); if(t->kind&KindNoPointers) - ret = mallocgc(t->size, RefNoPointers, 1, 1, 1); + ret = mallocgc(t->size, RefNoPointers, 1, 1); else ret = mal(t->size); FLUSH(&ret); @@ -682,7 +682,7 @@ unsafe·NewArray(Eface typ, uint32 n, void *ret) size = n*t->size; if(t->kind&KindNoPointers) - ret = mallocgc(size, RefNoPointers, 1, 1, 1); + ret = mallocgc(size, RefNoPointers, 1, 1); else ret = mal(size); FLUSH(&ret); |