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/75ff47d0-f708-4422-9017-bb2ab6e970d4n%40googlegroups.com.

Reply via email to