[go-nuts] Re: tls field in struct m

2017-10-31 Thread melodyhuibo
Thanks a lot!. For amd64, it seems not call set_thread_area system call. so in amd 64, for tls, only useful information should be the tls[0] which points to current g, right? Thanks Melody On Tuesday, October 31, 2017 at 12:01:40 PM UTC-7, melod...@gmail.com wrote: > > Hi All, > > I have one q

[go-nuts] tls field in struct m

2017-10-31 Thread melodyhuibo
Hi All, I have one question about tls field in the m struct. I see fs:0FFF8h is storing the pointer to current g which is the first element in tls field. In the m struct. tls is an six elements pointer array. I see the last five has 0 value in it. I wonder what are these 5 element