From: Keith Randall Date: Thu, 1 May 2014 13:37:55 +0000 (-0400) Subject: runtime: correctly type interface data. X-Git-Tag: go1.3beta2~158 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e9977dad45aa85afe8864a565f4825d8ea70706d;p=gostls13.git 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 --- diff --git a/src/pkg/runtime/iface.goc b/src/pkg/runtime/iface.goc index 08da8c7337..96bb8b8aa4 100644 --- a/src/pkg/runtime/iface.goc +++ b/src/pkg/runtime/iface.goc @@ -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; }