Commit e9977dad authored by Keith Randall's avatar Keith Randall

runtime: correctly type interface data.

The backing memory for >1 word interfaces was being scanned
conservatively.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/94000043
parent 61fac684
......@@ -161,7 +161,7 @@ copyin(Type *t, void *src, void **dst)
if(size <= sizeof(*dst))
alg->copy(size, dst, src);
else {
p = runtime·mal(size);
p = runtime·cnew(t);
alg->copy(size, p, src);
*dst = p;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment