Thanks for the clarification.
On Mon, Oct 22, 2018 at 13:13 Ian Lance Taylor wrote:
> On Sun, Oct 21, 2018 at 8:34 PM, Fei Ding wrote:
> >
> > I am studying golang source code, literally `go/src/runtime/chan.go`, the
> > question is in function `makechan`, when it comes to malloc memory for
> >
On Sun, Oct 21, 2018 at 8:34 PM, Fei Ding wrote:
>
> I am studying golang source code, literally `go/src/runtime/chan.go`, the
> question is in function `makechan`, when it comes to malloc memory for
> channel with/without pointers, you guys did it as:
>
>
> case elem.kind&kindNoPointers != 0:
>
Hi
I am studying golang source code, literally `go/src/runtime/chan.go`, the
question is in function `makechan`, when it comes to malloc memory for
channel with/without pointers, you guys did it as:
case elem.kind&kindNoPointers != 0:
// Elements do not contain pointers.
// Allocate hchan and