I am too dumb that i thought it was a slice. Thanks a lot : )
On Fri, Aug 17, 2018 at 11:01 PM Ian Lance Taylor wrote:
> On Fri, Aug 17, 2018 at 3:28 AM, wrote:
> >
> > I am new to golang source code, and recently met a problem about
> > understanding golang gc.
> >
> > In runtime/mgcwork.go:
On Fri, Aug 17, 2018 at 3:28 AM, wrote:
>
> I am new to golang source code, and recently met a problem about
> understanding golang gc.
>
> In runtime/mgcwork.go: 114
>
> func (w *gcWork) put(obj uintptr) {
>flushed := false
>wbuf := w.wbuf1
>if wbuf == nil {
> w.init()
>
Hey guys,
I am new to golang source code, and recently met a problem about
understanding golang gc.
In runtime/mgcwork.go: 114
func (w *gcWork) put(obj uintptr) {
flushed := false
wbuf := w.wbuf1
if wbuf == nil {
w.init()
wbuf = w.wbuf1
// wbuf is empty at this