Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-10-26 | Change Notify() to use unix.RawSyscall. | Bhasker Hariharan | |
eventfd.Notify() uses unix.Write which will eventually call unix.Syscall which will yield the current go processor resulting in the Go scheduler parking the current goroutine till the syscall returns. But in most cases where Notify() is called there is no reason to yield as the caller probably wants to continue doing something right afterwards. Like in the case of the sharedmem endpoint which may still have more packets to write. PiperOrigin-RevId: 405693801 |