On Fri, Oct 6, 2017 at 9:22 AM, 王晚成 <[email protected]> wrote: > hello , > I have a question about the bottom of the goroutine. > What is the meaning of the mstartfn field inside the M structure > under runtime2.go? > Is this mstartfn the function that we write behind the go statement? > Or what other functions? > Thanks very much!
mstartfn is used to start a few special purpose functions on a new M. Specifically, in current master, the possible values are sysmon (the system monitor thread), mhelpgc (a new thread ready to help the GC in the future), and mspinning (starts the new thread in spinning state to maintain some bookkeeping). Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
