I meant "see if G is on an M" On Wednesday, October 7, 2020 at 5:55:45 PM UTC-7 Uday Kiran Jonnala wrote:
> Just wondering if we can add additional condition below > > https://golang.org/src/runtime/lock_futex.go > > func lock2(l *mutex) { > gp := getg() 52 > ... > // Try for lock, rescheduling. > for i := 0; i < passive_spin; i++ { > > We may need to improve this by stubbing the ownership information say M id > into > lock, that way we can decide to spin or sleep if G is running on M > currently. > > Just a thought. > > Starting now on go runtime...thinking a loud here. > > Thanks & Regards, > Uday Kiran > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2d8d3d05-e522-45b2-9989-ae266794a34dn%40googlegroups.com.
