https://github.com/golang/go/blob/master/src/runtime/proc.go#L2441 why not change to if !atomic.Cas(&sched.nmspinning, 0, 1), it seems check sched.nmspinning no zero is unneccessary in logic, i am not sure, i guess it's about performence issue?
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/15e498ae-8a58-4bb6-972e-d79604bbcc88n%40googlegroups.com.