Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(982)

Unified Diff: src/pkg/runtime/iface.c

Issue 855046: code review 855046: runtime: delete malx, skip_depth argument to malloc (Closed)
Patch Set: code review 855046: runtime: delete malx, skip_depth argument to malloc Created 14 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/prof/gopprof ('k') | src/pkg/runtime/malloc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/iface.c
===================================================================
--- a/src/pkg/runtime/iface.c
+++ b/src/pkg/runtime/iface.c
@@ -157,7 +157,7 @@
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 @@
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 @@
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);
« no previous file with comments | « src/cmd/prof/gopprof ('k') | src/pkg/runtime/malloc.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b