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 question about tls field in the m struct. > > I see fs:0FFFFFFFFFFFFFFF8h 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 elements storing as design? > > > Thanks > Melody > -- 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 golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.